From dd36c40ff35f9e7cdae5234204265b7ef65a16d3 Mon Sep 17 00:00:00 2001 From: yang_shj <1069818635@QQ.com> Date: Tue, 20 Feb 2024 11:15:07 +0800 Subject: [PATCH] =?UTF-8?q?#=E6=BC=94=E7=A4=BA=E5=A4=A7=E5=B1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hnac/hzims/operational/data/service/impl/HzimsDataServiceImpl.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/data/service/impl/HzimsDataServiceImpl.java b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/data/service/impl/HzimsDataServiceImpl.java index fa6e2a5..dd9ac56 100644 --- a/hzims-service/operational/src/main/java/com/hnac/hzims/operational/data/service/impl/HzimsDataServiceImpl.java +++ b/hzims-service/operational/src/main/java/com/hnac/hzims/operational/data/service/impl/HzimsDataServiceImpl.java @@ -431,6 +431,7 @@ public class HzimsDataServiceImpl implements HzimsDataService { */ private List loadWaterBy24Hour(Long deptId,String stationCode) { Calendar calendar = Calendar.getInstance(); + calendar.add(Calendar.HOUR_OF_DAY,-3); String endTime = DateUtil.format(calendar.getTime(),DateUtil.PATTERN_DATETIME); calendar.add(Calendar.HOUR_OF_DAY,-24); String startTime = DateUtil.format(calendar.getTime(),DateUtil.PATTERN_DATETIME); @@ -535,6 +536,7 @@ public class HzimsDataServiceImpl implements HzimsDataService { */ private List get24Hours() { Calendar calendar = Calendar.getInstance(); + calendar.add(Calendar.HOUR_OF_DAY,-3); Date end = calendar.getTime(); calendar.add(Calendar.HOUR_OF_DAY,-24); Date start = calendar.getTime();