|
|
|
@ -431,6 +431,7 @@ public class HzimsDataServiceImpl implements HzimsDataService {
|
|
|
|
|
*/ |
|
|
|
|
private List<LoadWaterLevelVo> 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<String> 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(); |
|
|
|
|