|
@@ -255,10 +255,10 @@ public class RepalRemindHistoryServiceImpl extends ServiceImpl<RepalRemindHistor
|
|
boolean allFlag = repalRolePermissionService.checkUserPermission(UserContextUtil.getUser().getUserId(),PermissionEnum.QUERY_ALL_URGE.getCode());
|
|
boolean allFlag = repalRolePermissionService.checkUserPermission(UserContextUtil.getUser().getUserId(),PermissionEnum.QUERY_ALL_URGE.getCode());
|
|
LocalDateTime localDateTime = LocalDateTime.now().withYear(2019);
|
|
LocalDateTime localDateTime = LocalDateTime.now().withYear(2019);
|
|
//添加查询时间的条件
|
|
//添加查询时间的条件
|
|
- if (StrUtil.isBlank(dto.getTimeSlot()) || Dict.TIME_SLOT_ENUM.本月.getCode().equals(dto.getTimeSlot())) {
|
|
|
|
- localDateTime = LocalDateTime.now().withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0);
|
|
|
|
- }else if(StrUtil.isBlank(dto.getTimeSlot()) || Dict.TIME_SLOT_ENUM.本周.getCode().equals(dto.getTimeSlot())){
|
|
|
|
- localDateTime = LocalDateTime.now().with(DayOfWeek.MONDAY).withHour(0).withMinute(0).withSecond(0);
|
|
|
|
|
|
+ if (StrUtil.isNotBlank(dto.getTimeSlot()) && Dict.TIME_SLOT_ENUM.本月.getCode().equals(dto.getTimeSlot())) {
|
|
|
|
+ localDateTime = LocalDateTime.now().minusDays(30);
|
|
|
|
+ }else if(StrUtil.isNotBlank(dto.getTimeSlot()) && Dict.TIME_SLOT_ENUM.本周.getCode().equals(dto.getTimeSlot())){
|
|
|
|
+ localDateTime = LocalDateTime.now().minusDays(7);
|
|
}
|
|
}
|
|
RepalRemindCountVO result = new RepalRemindCountVO(0,0,0,0,0,0,0,0,0,0);
|
|
RepalRemindCountVO result = new RepalRemindCountVO(0,0,0,0,0,0,0,0,0,0);
|
|
if(Dict.COUNT_QUERY_ENUM.账款.getCode().equals(dto.getQueryType())){
|
|
if(Dict.COUNT_QUERY_ENUM.账款.getCode().equals(dto.getQueryType())){
|
|
@@ -351,10 +351,10 @@ public class RepalRemindHistoryServiceImpl extends ServiceImpl<RepalRemindHistor
|
|
}
|
|
}
|
|
LocalDateTime localDateTime = LocalDateTime.now().withYear(2019);
|
|
LocalDateTime localDateTime = LocalDateTime.now().withYear(2019);
|
|
//添加查询时间的条件
|
|
//添加查询时间的条件
|
|
- if (StrUtil.isBlank(dto.getTimeSlot()) || Dict.TIME_SLOT_ENUM.本月.getCode().equals(dto.getTimeSlot())) {
|
|
|
|
- localDateTime = LocalDateTime.now().withDayOfMonth(1).withHour(0).withMinute(0).withSecond(0);
|
|
|
|
- }else if(StrUtil.isBlank(dto.getTimeSlot()) || Dict.TIME_SLOT_ENUM.本周.getCode().equals(dto.getTimeSlot())){
|
|
|
|
- localDateTime = LocalDateTime.now().with(DayOfWeek.MONDAY).withHour(0).withMinute(0).withSecond(0);
|
|
|
|
|
|
+ if (StrUtil.isNotBlank(dto.getTimeSlot()) && Dict.TIME_SLOT_ENUM.本月.getCode().equals(dto.getTimeSlot())) {
|
|
|
|
+ localDateTime = LocalDateTime.now().minusDays(30);
|
|
|
|
+ }else if(StrUtil.isNotBlank(dto.getTimeSlot()) && Dict.TIME_SLOT_ENUM.本周.getCode().equals(dto.getTimeSlot())){
|
|
|
|
+ localDateTime = LocalDateTime.now().minusDays(7);
|
|
}
|
|
}
|
|
VOPage<RepalRemindHistoryVO> result = new VOPage<>(pageNum,pageSize,0L,new ArrayList<>());
|
|
VOPage<RepalRemindHistoryVO> result = new VOPage<>(pageNum,pageSize,0L,new ArrayList<>());
|
|
LambdaQueryWrapper<RepalRemindHistory> qw = Wrappers.lambdaQuery(RepalRemindHistory.class);
|
|
LambdaQueryWrapper<RepalRemindHistory> qw = Wrappers.lambdaQuery(RepalRemindHistory.class);
|