|
|
@@ -56,9 +56,9 @@ public class DailyStatServiceImpl extends MyBaseServiceImpl<DailyStatMapper, Dai
|
|
|
.eq(CommUtil.isNotEmptyAndNull(params.getStationId()),
|
|
|
DailyStat::getStationId, params.getStationId())
|
|
|
.ge(params.getStartDate() != null,
|
|
|
- DailyStat::getStatDate, params.getStartDate().format(DateTimeFormatter.ISO_LOCAL_DATE))
|
|
|
+ DailyStat::getStatDate, params.getStartDate() != null ? params.getStartDate().format(DateTimeFormatter.ISO_LOCAL_DATE) : null)
|
|
|
.le(params.getEndDate() != null,
|
|
|
- DailyStat::getStatDate, params.getEndDate().format(DateTimeFormatter.ISO_LOCAL_DATE))
|
|
|
+ DailyStat::getStatDate, params.getEndDate() != null ? params.getEndDate().format(DateTimeFormatter.ISO_LOCAL_DATE) : null)
|
|
|
.orderByDesc(DailyStat::getStatDate);
|
|
|
|
|
|
var page = PageHelper.startPage(params.getPageNum(), params.getPageSize());
|