默认查询最早的历史数据:
从1个月改为30天
This commit is contained in:
parent
bbb5347967
commit
ca85fe23c3
@ -46,7 +46,7 @@ public class FirePointQueryHelper {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
//限制最早开始时间不得早于一个月
|
//限制最早开始时间不得早于一个月
|
||||||
LocalDateTime lastMonth1 = LocalDateTime.now().minusMonths(1);
|
LocalDateTime lastMonth1 = LocalDateTime.now().minusDays(30);
|
||||||
LocalDateTime lastMonth2 = LocalDateTime.of(lastMonth1.getYear(), lastMonth1.getMonth(), lastMonth1.getDayOfMonth(), 0, 0, 0, 0);
|
LocalDateTime lastMonth2 = LocalDateTime.of(lastMonth1.getYear(), lastMonth1.getMonth(), lastMonth1.getDayOfMonth(), 0, 0, 0, 0);
|
||||||
String lastMonthString = DateTimeUtils.localDateTimeToString(lastMonth2);
|
String lastMonthString = DateTimeUtils.localDateTimeToString(lastMonth2);
|
||||||
predicateList.add(criteriaBuilder.greaterThanOrEqualTo(root.get("satelliteTime").as(String.class), lastMonthString));
|
predicateList.add(criteriaBuilder.greaterThanOrEqualTo(root.get("satelliteTime").as(String.class), lastMonthString));
|
||||||
|
Loading…
Reference in New Issue
Block a user