|
|
@ -168,6 +168,10 @@ public class HydroelectricServiceImpl implements HydroelectricService { |
|
|
|
device.setStartupDurationYear(-1.0); |
|
|
|
device.setStartupDurationYear(-1.0); |
|
|
|
device.setShutDownDurationYear(-1.0); |
|
|
|
device.setShutDownDurationYear(-1.0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(CollectionUtil.isEmpty(startStopTimes)){ |
|
|
|
|
|
|
|
device.setStartDownTime("-1"); |
|
|
|
|
|
|
|
device.setStartupDownDuration(-1.0); |
|
|
|
|
|
|
|
}else{ |
|
|
|
// 开停机数据
|
|
|
|
// 开停机数据
|
|
|
|
Optional<StartStopTimeVO> startStop = startStopTimes.stream().filter(o->iter.getEmCode().equals(o.getDeviceCode())).findFirst(); |
|
|
|
Optional<StartStopTimeVO> startStop = startStopTimes.stream().filter(o->iter.getEmCode().equals(o.getDeviceCode())).findFirst(); |
|
|
|
if(startStop.isPresent()){ |
|
|
|
if(startStop.isPresent()){ |
|
|
@ -188,6 +192,7 @@ public class HydroelectricServiceImpl implements HydroelectricService { |
|
|
|
device.setStartDownTime("-1"); |
|
|
|
device.setStartDownTime("-1"); |
|
|
|
device.setStartupDownDuration(-1.0); |
|
|
|
device.setStartupDownDuration(-1.0); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
return device; |
|
|
|
return device; |
|
|
|
}).collect(Collectors.toList())); |
|
|
|
}).collect(Collectors.toList())); |
|
|
|
} |
|
|
|
} |
|
|
|