From ca85fe23c39b0982ccfd5f96eb542c92943ad703 Mon Sep 17 00:00:00 2001 From: liuchengqian Date: Mon, 27 Jun 2022 16:40:32 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E6=9F=A5=E8=AF=A2=E6=9C=80?= =?UTF-8?q?=E6=97=A9=E7=9A=84=E5=8E=86=E5=8F=B2=E6=95=B0=E6=8D=AE=EF=BC=9A?= =?UTF-8?q?=20=E4=BB=8E1=E4=B8=AA=E6=9C=88=E6=94=B9=E4=B8=BA30=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/xkrs/utils/FirePointQueryHelper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/xkrs/utils/FirePointQueryHelper.java b/src/main/java/com/xkrs/utils/FirePointQueryHelper.java index 908ab56..ca0562b 100644 --- a/src/main/java/com/xkrs/utils/FirePointQueryHelper.java +++ b/src/main/java/com/xkrs/utils/FirePointQueryHelper.java @@ -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); String lastMonthString = DateTimeUtils.localDateTimeToString(lastMonth2); predicateList.add(criteriaBuilder.greaterThanOrEqualTo(root.get("satelliteTime").as(String.class), lastMonthString));