mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-26 17:21:53 +08:00
wip: LocalDate.now().atTime
This commit is contained in:
parent
08e23a7dc4
commit
5105c6d16f
@ -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<CrmCustomerDO> {
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user