动态多条件查询火点列表 去除最早开始时间限制

This commit is contained in:
liuchengqian 2023-01-31 16:54:34 +08:00
parent 156207f709
commit 0225ae9ba4

View File

@ -47,10 +47,10 @@ public class FirePointQueryHelper {
e.printStackTrace();
}
}
//限制最早开始时间不得早于一个月
LocalDateTime lastMonth1 = LocalDateTime.now().minusDays(30);
LocalDateTime lastMonth2 = LocalDateTime.of(lastMonth1.getYear(), lastMonth1.getMonth(), lastMonth1.getDayOfMonth(), 0, 0, 0, 0);
String lastMonthString = DateTimeUtils.localDateTimeToString(lastMonth2);
// //限制最早开始时间不得早于一个月
// LocalDateTime lastMonth1 = LocalDateTime.now().minusDays(30);
// LocalDateTime lastMonth2 = LocalDateTime.of(lastMonth1.getYear(), lastMonth1.getMonth(), lastMonth1.getDayOfMonth(), 0, 0, 0, 0);
// String lastMonthString = DateTimeUtils.localDateTimeToString(lastMonth2);
// predicateList.add(criteriaBuilder.greaterThanOrEqualTo(root.get("satelliteTime").as(String.class), lastMonthString));
//开始时间查询条件
if (!TextUtils.isEmpty(startTime)) {