Browse Source

#检修流程

zhongwei
yang_shj 1 year ago
parent
commit
a4d22de1d5
  1. 3
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/vo/AppHydropowerDeviceVo.java
  2. 3
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/vo/HydropowerUnitRealVo.java
  3. 2
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/ecology/service/impl/EcologyFlowStationServiceImpl.java
  4. 4
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/HydropowerServiceImpl.java

3
hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/vo/AppHydropowerDeviceVo.java

@ -28,4 +28,7 @@ public class AppHydropowerDeviceVo {
@ApiModelProperty(value = "负荷单位") @ApiModelProperty(value = "负荷单位")
private String loadUnit; private String loadUnit;
@ApiModelProperty(value = "排序")
private Integer ord;
} }

3
hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/vo/HydropowerUnitRealVo.java

@ -61,4 +61,7 @@ public class HydropowerUnitRealVo {
@ApiModelProperty(value = "电流单位") @ApiModelProperty(value = "电流单位")
private String currentUnit; private String currentUnit;
@ApiModelProperty(value = "排序")
private Integer ord;
} }

2
hzims-service/operational/src/main/java/com/hnac/hzims/operational/ecology/service/impl/EcologyFlowStationServiceImpl.java

@ -179,7 +179,7 @@ public class EcologyFlowStationServiceImpl extends BaseServiceImpl<EcologyFlowSt
@Override @Override
public List<StationVo> station() { public List<StationVo> station() {
List<StationEntity> stations = stationService.list(Wrappers.<StationEntity>lambdaQuery() List<StationEntity> stations = stationService.list(Wrappers.<StationEntity>lambdaQuery()
.in(StationEntity::getCode,Arrays.asList("902400000054","902400052664"))); .in(StationEntity::getCode,Arrays.asList("902400000054","902400052664","902400056791")));
if(CollectionUtil.isEmpty(stations)){ if(CollectionUtil.isEmpty(stations)){
return new ArrayList<>(); return new ArrayList<>();
} }

4
hzims-service/operational/src/main/java/com/hnac/hzims/operational/main/service/impl/HydropowerServiceImpl.java

@ -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;

Loading…
Cancel
Save