|
|
@ -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(); |
|
|
|
Optional<DeviceInstanceAttrVO> attrOptional = paramDeviceAttrR.getData().stream().filter(deviceAttr -> k.getValue().getN().equals(deviceAttr.getName())).findFirst(); |
|
|
|
data.setModelClassifyId(attrOptional.get().getModelClassifyId()); |
|
|
|
data.setModelClassifyId(attrOptional.get().getModelClassifyId()); |
|
|
|
data.setModelClassifyName(attrOptional.get().getModelClassifyName()); |
|
|
|
data.setModelClassifyName(attrOptional.get().getModelClassifyName()); |
|
|
|
|
|
|
|
data.setUnits(attrOptional.get().getUnits()); |
|
|
|
return data; |
|
|
|
return data; |
|
|
|
})).collect(Collectors.toList()); |
|
|
|
})).collect(Collectors.toList()); |
|
|
|
return result.stream().collect(Collectors.groupingBy(RobotRealDataVO::getModelClassifyName)); |
|
|
|
return result.stream().collect(Collectors.groupingBy(RobotRealDataVO::getModelClassifyName)); |
|
|
|