Commit 5105c6d16fd63f79543ca9324e599ae6bf802b5b

Authored by dhb52
1 parent 08e23a7d

wip: LocalDate.now().atTime

yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/dal/mysql/customer/CrmCustomerMapper.java
@@ -13,6 +13,7 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper; @@ -13,6 +13,7 @@ import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
13 import org.apache.ibatis.annotations.Mapper; 13 import org.apache.ibatis.annotations.Mapper;
14 import org.springframework.lang.Nullable; 14 import org.springframework.lang.Nullable;
15 15
  16 +import java.time.LocalDate;
16 import java.time.LocalDateTime; 17 import java.time.LocalDateTime;
17 import java.time.LocalTime; 18 import java.time.LocalTime;
18 import java.util.Collection; 19 import java.util.Collection;
@@ -85,8 +86,8 @@ public interface CrmCustomerMapper extends BaseMapperX<CrmCustomerDO> { @@ -85,8 +86,8 @@ public interface CrmCustomerMapper extends BaseMapperX<CrmCustomerDO> {
85 query.selectAll(CrmCustomerDO.class); 86 query.selectAll(CrmCustomerDO.class);
86 87
87 // 拼接自身的查询条件 88 // 拼接自身的查询条件
88 - LocalDateTime beginOfToday = LocalDateTime.now().toLocalDate().atTime(LocalTime.MIN);  
89 - LocalDateTime endOfToday = LocalDateTime.now().toLocalDate().atTime(LocalTime.MAX); 89 + LocalDateTime beginOfToday = LocalDate.now().atTime(LocalTime.MIN);
  90 + LocalDateTime endOfToday = LocalDate.now().atTime(LocalTime.MAX);
90 if (pageReqVO.getContactStatus().equals(CrmTodayCustomerPageReqVO.CONTACT_TODAY)) { 91 if (pageReqVO.getContactStatus().equals(CrmTodayCustomerPageReqVO.CONTACT_TODAY)) {
91 // 今天需联系 92 // 今天需联系
92 query.between(CrmCustomerDO::getContactNextTime, beginOfToday, endOfToday); 93 query.between(CrmCustomerDO::getContactNextTime, beginOfToday, endOfToday);