|
|
@ -91,6 +91,12 @@ public class DataRecordService extends BaseServiceImpl<DataRecordMapper, DataRec |
|
|
|
deviceAttrDTO.setStationId(deviceAttr.getProjectId()); |
|
|
|
deviceAttrDTO.setStationId(deviceAttr.getProjectId()); |
|
|
|
deviceAttrDTO.setRecordName(deviceAttr.getName()); |
|
|
|
deviceAttrDTO.setRecordName(deviceAttr.getName()); |
|
|
|
deviceAttrDTO.setItemId(deviceAttr.getSignage()); |
|
|
|
deviceAttrDTO.setItemId(deviceAttr.getSignage()); |
|
|
|
|
|
|
|
String stationName = deviceAttrDTO.getStationName() == null ? "" : deviceAttrDTO.getStationName(); |
|
|
|
|
|
|
|
String deviceName = deviceAttrDTO.getDeviceName() == null ? "" : deviceAttrDTO.getDeviceName(); |
|
|
|
|
|
|
|
String recordName = deviceAttrDTO.getRecordName() == null ? "" : deviceAttrDTO.getRecordName(); |
|
|
|
|
|
|
|
deviceAttrDTO.setItemName(new StringBuffer(stationName) |
|
|
|
|
|
|
|
.append(" ").append(deviceName) |
|
|
|
|
|
|
|
.append(" ").append(recordName).toString()); |
|
|
|
deviceAttrDTO.setRule(deviceAttr.getRule()); |
|
|
|
deviceAttrDTO.setRule(deviceAttr.getRule()); |
|
|
|
deviceAttrDTOS.add(deviceAttrDTO); |
|
|
|
deviceAttrDTOS.add(deviceAttrDTO); |
|
|
|
} |
|
|
|
} |
|
|
|