1.升级 pom.xml 依赖

2.修复 getKeywordsQueryWrapper 根据日期范围查询
This commit is contained in:
Wang Chen Chen
2024-03-29 18:23:40 +08:00
parent 0ba79f60e8
commit 8985fe480f
2 changed files with 3 additions and 3 deletions

View File

@@ -116,9 +116,9 @@ public class BaseServiceImpl<M extends BaseMapper<T>, T extends BaseEntity> exte
if (ObjectUtils.isNotEmpty(params.getStartDate())) {
// 如果结束时间是否为空
if (ObjectUtils.isNotEmpty(params.getEndDate())) {
wrapper.between(CREATE_TIME, params.getStartDate(), params.getEndDate());
wrapper.between(String.format("DATE(%s)", CREATE_TIME), params.getStartDate(), params.getEndDate());
} else {
wrapper.between(CREATE_TIME, params.getStartDate(), LocalDate.now());
wrapper.between(String.format("DATE(%s)", CREATE_TIME), params.getStartDate(), LocalDate.now());
}
}
if (StringUtils.isNotBlank(params.getKeywords()) && columns != null && !columns.isEmpty()) {

View File

@@ -55,7 +55,7 @@
<!-- MyBatis 的增强工具,基友搭配,效率翻倍 -->
<mybatis-plus.version>3.5.5</mybatis-plus.version>
<!-- JavaEE 颠覆者 -->
<spring-boot.version>3.2.3</spring-boot.version>
<spring-boot.version>3.2.4</spring-boot.version>
</properties>