From 5105c6d16fd63f79543ca9324e599ae6bf802b5b Mon Sep 17 00:00:00 2001 From: dhb52 Date: Tue, 16 Jan 2024 11:06:01 +0800 Subject: [PATCH] wip: LocalDate.now().atTime --- .../module/crm/dal/mysql/customer/CrmCustomerMapper.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/dal/mysql/customer/CrmCustomerMapper.java b/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/dal/mysql/customer/CrmCustomerMapper.java index 1c70b8267..e28883c8c 100644 --- a/yudao-module-crm/yudao-module-crm-biz/src/main/java/cn/iocoder/yudao/module/crm/dal/mysql/customer/CrmCustomerMapper.java +++ b/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; import org.apache.ibatis.annotations.Mapper; import org.springframework.lang.Nullable; +import java.time.LocalDate; import java.time.LocalDateTime; import java.time.LocalTime; import java.util.Collection; @@ -85,8 +86,8 @@ public interface CrmCustomerMapper extends BaseMapperX { query.selectAll(CrmCustomerDO.class); // 拼接自身的查询条件 - LocalDateTime beginOfToday = LocalDateTime.now().toLocalDate().atTime(LocalTime.MIN); - LocalDateTime endOfToday = LocalDateTime.now().toLocalDate().atTime(LocalTime.MAX); + LocalDateTime beginOfToday = LocalDate.now().atTime(LocalTime.MIN); + LocalDateTime endOfToday = LocalDate.now().atTime(LocalTime.MAX); if (pageReqVO.getContactStatus().equals(CrmTodayCustomerPageReqVO.CONTACT_TODAY)) { // 今天需联系 query.between(CrmCustomerDO::getContactNextTime, beginOfToday, endOfToday);