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