Browse Source

#检修流程

zhongwei
yang_shj 1 year ago
parent
commit
2e4f40a4e5
  1. 3
      hzims-service-api/hzims-operational-api/src/main/java/com/hnac/hzims/operational/main/vo/HydropowerUnitVo.java
  2. 3
      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/HydropowerUnitVo.java

@ -17,6 +17,9 @@ public class HydropowerUnitVo {
@ApiModelProperty(value = "水电站机组名称") @ApiModelProperty(value = "水电站机组名称")
private String deivceName; private String deivceName;
@ApiModelProperty(value = "排序")
private Integer ord;
@ApiModelProperty(value = "水电站机组实时数据") @ApiModelProperty(value = "水电站机组实时数据")
private HydropowerUnitRealVo hydropowerPumpRealVo; private HydropowerUnitRealVo hydropowerPumpRealVo;

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

@ -641,6 +641,7 @@ public class HydropowerServiceImpl implements HydropowerService {
// 设备编号 // 设备编号
hydropowerUnitVo.setDeivceCode(real.getDeviceCode()); hydropowerUnitVo.setDeivceCode(real.getDeviceCode());
hydropowerUnitVo.setDeivceName(real.getDeviceName()); hydropowerUnitVo.setDeivceName(real.getDeviceName());
hydropowerUnitVo.setOrd(real.getOrd());
// 实时数据 // 实时数据
hydropowerUnitVo.setHydropowerPumpRealVo(real); hydropowerUnitVo.setHydropowerPumpRealVo(real);
// 指标数据 // 指标数据
@ -652,7 +653,7 @@ public class HydropowerServiceImpl implements HydropowerService {
} }
list.add(hydropowerUnitVo); list.add(hydropowerUnitVo);
} }
return list.stream().sorted(Comparator.comparing(HydropowerUnitVo::getDeivceCode)).collect(Collectors.toList()); return list.stream().sorted(Comparator.comparing(HydropowerUnitVo::getOrd)).collect(Collectors.toList());
} }
/** /**

Loading…
Cancel
Save