|
|
|
@ -272,7 +272,7 @@ public class HzimsDataServiceImpl implements HzimsDataService {
|
|
|
|
|
return new ArrayList<>(); |
|
|
|
|
} |
|
|
|
|
List<ActivePowerVo> actives = new ArrayList<>(); |
|
|
|
|
targetList.stream().filter(o->o.getDeptId().equals(refDept)).map(HydropowerUnitTargetVo::getActivePowerVoList).collect(Collectors.toList()).forEach(actives::addAll); |
|
|
|
|
targetList.stream().filter(o-> CollectionUtil.isNotEmpty(o.getActivePowerVoList()) && ObjectUtil.isNotEmpty(o.getDeptId()) && o.getDeptId().equals(refDept)).map(HydropowerUnitTargetVo::getActivePowerVoList).collect(Collectors.toList()).forEach(actives::addAll); |
|
|
|
|
if(CollectionUtil.isEmpty(actives)){ |
|
|
|
|
return new ArrayList<>(); |
|
|
|
|
} |
|
|
|
@ -282,7 +282,7 @@ public class HzimsDataServiceImpl implements HzimsDataService {
|
|
|
|
|
activePower.setHour(entry.getKey()); |
|
|
|
|
activePower.setActivePower(String.valueOf(entry.getValue().stream().mapToDouble(o->Double.parseDouble(o.getActivePower())).sum())); |
|
|
|
|
return activePower; |
|
|
|
|
}).collect(Collectors.toList()); |
|
|
|
|
}).sorted(Comparator.comparing(ActivePowerVo::getHour)).collect(Collectors.toList()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|