|
|
|
@ -153,6 +153,7 @@ public class HydropowerServiceImpl implements HydropowerService {
|
|
|
|
|
HydropowerUnitRealVo real = new HydropowerUnitRealVo(); |
|
|
|
|
real.setDeptId(device.getCreateDept()); |
|
|
|
|
real.setDeviceCode(device.getEmCode()); |
|
|
|
|
real.setOrd(device.getOrd()); |
|
|
|
|
real.setDeptName(device.getName()); |
|
|
|
|
real.setDeviceName(device.getName()); |
|
|
|
|
// 装机容量
|
|
|
|
@ -1546,6 +1547,7 @@ public class HydropowerServiceImpl implements HydropowerService {
|
|
|
|
|
// 设备
|
|
|
|
|
hydropower.setDevices(devices.stream().map(real->{ |
|
|
|
|
AppHydropowerDeviceVo device = new AppHydropowerDeviceVo(); |
|
|
|
|
device.setOrd(real.getOrd()); |
|
|
|
|
device.setDeviceCode(real.getDeviceCode()); |
|
|
|
|
device.setDeviceName(real.getDeviceName()); |
|
|
|
|
device.setState(real.getState()); |
|
|
|
@ -1553,7 +1555,7 @@ public class HydropowerServiceImpl implements HydropowerService {
|
|
|
|
|
device.setCapacity(real.getInstalledCapacity()); |
|
|
|
|
device.setLoad(real.getActivePower()); |
|
|
|
|
return device; |
|
|
|
|
}).collect(Collectors.toList())); |
|
|
|
|
}).sorted(Comparator.comparing(AppHydropowerDeviceVo::getOrd)).collect(Collectors.toList())); |
|
|
|
|
hydropower.setLoadUnit(hydropower.getDevices().get(0).getLoadUnit()); |
|
|
|
|
} |
|
|
|
|
return hydropower; |
|
|
|
|