|
|
|
@ -235,6 +235,7 @@ public class EcologyFlowStationServiceImpl extends BaseServiceImpl<EcologyFlowSt
|
|
|
|
|
// 设备编号
|
|
|
|
|
device.setDeviceCode(real.getDeviceCode()); |
|
|
|
|
device.setDeviceName(real.getDeviceName()); |
|
|
|
|
device.setOrd(real.getOrd()); |
|
|
|
|
device.setState(real.getState()); |
|
|
|
|
device.setActive(real.getActivePower()); |
|
|
|
|
device.setReactive(real.getReactivePower()); |
|
|
|
@ -244,7 +245,7 @@ public class EcologyFlowStationServiceImpl extends BaseServiceImpl<EcologyFlowSt
|
|
|
|
|
device.setGenerate(0.0); |
|
|
|
|
list.add(device); |
|
|
|
|
} |
|
|
|
|
return list.stream().sorted(Comparator.comparing(DeviceVo::getDeviceCode)).collect(Collectors.toList()); |
|
|
|
|
return list.stream().sorted(Comparator.comparing(DeviceVo::getOrd)).collect(Collectors.toList()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|