Browse Source

数据看板加单位

zhongwei
RnhaiWang 6 months ago
parent
commit
da5516f038
  1. 1
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/service/impl/RobotServiceImpl.java
  2. 3
      hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/vo/robot/RobotRealDataVO.java

1
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/service/impl/RobotServiceImpl.java

@ -129,6 +129,7 @@ public class RobotServiceImpl extends BaseServiceImpl<RobotMapper, RobotEntity>
Optional<DeviceInstanceAttrVO> attrOptional = paramDeviceAttrR.getData().stream().filter(deviceAttr -> k.getValue().getN().equals(deviceAttr.getName())).findFirst();
data.setModelClassifyId(attrOptional.get().getModelClassifyId());
data.setModelClassifyName(attrOptional.get().getModelClassifyName());
data.setUnits(attrOptional.get().getUnits());
return data;
})).collect(Collectors.toList());
return result.stream().collect(Collectors.groupingBy(RobotRealDataVO::getModelClassifyName));

3
hzims-service/inspect/src/main/java/com/hnac/hzinfo/inspect/ai/vo/robot/RobotRealDataVO.java

@ -49,4 +49,7 @@ public class RobotRealDataVO implements Serializable {
@ApiModelProperty("启停状态")
private Integer state;
@ApiModelProperty("单位")
private String units;
}

Loading…
Cancel
Save