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();