|
@@ -29,6 +29,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.math.BigDecimal;
|
|
|
+import java.time.DayOfWeek;
|
|
|
import java.time.LocalDate;
|
|
|
import java.time.LocalDateTime;
|
|
|
import java.time.ZoneOffset;
|
|
@@ -247,8 +248,10 @@ public class RepalRemindHistoryServiceImpl extends ServiceImpl<RepalRemindHistor
|
|
|
}
|
|
|
LocalDateTime localDateTime = LocalDateTime.now().withYear(2019);
|
|
|
//添加查询时间的条件
|
|
|
- if (StrUtil.isBlank(dto.getTimeSlot()) || Dict.TIME_SLOT_ENUM.近30天.getCode().equals(dto.getTimeSlot())) {
|
|
|
- localDateTime = LocalDateTime.now().minusDays(30).withHour(0).withMinute(0).withSecond(0);
|
|
|
+ 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);
|
|
|
}
|
|
|
RepalRemindCountVO result = new RepalRemindCountVO(0,0,0,0,0,0,0,0,0,0);
|
|
|
if(Dict.COUNT_QUERY_ENUM.账款.getCode().equals(dto.getQueryType())){
|
|
@@ -316,8 +319,10 @@ public class RepalRemindHistoryServiceImpl extends ServiceImpl<RepalRemindHistor
|
|
|
}
|
|
|
LocalDateTime localDateTime = LocalDateTime.now().withYear(2019);
|
|
|
//添加查询时间的条件
|
|
|
- if (StrUtil.isBlank(dto.getTimeSlot()) || Dict.TIME_SLOT_ENUM.近30天.getCode().equals(dto.getTimeSlot())) {
|
|
|
- localDateTime = LocalDateTime.now().minusDays(30).withHour(0).withMinute(0).withSecond(0);
|
|
|
+ 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);
|
|
|
}
|
|
|
VOPage<RepalRemindHistoryVO> result = new VOPage<>(pageNum,pageSize,0L,new ArrayList<>());
|
|
|
LambdaQueryWrapper<RepalRemindHistory> qw = Wrappers.lambdaQuery(RepalRemindHistory.class);
|