feat (farm): 设备中心
- 设备监控
This commit is contained in:
@@ -16,6 +16,7 @@ import java.util.List;
|
|||||||
@NoArgsConstructor
|
@NoArgsConstructor
|
||||||
public class DeviceMonitorDataRespVO {
|
public class DeviceMonitorDataRespVO {
|
||||||
|
|
||||||
|
private String deviceType;
|
||||||
private String deviceTypeName;
|
private String deviceTypeName;
|
||||||
private List<Row> rows;
|
private List<Row> rows;
|
||||||
|
|
||||||
|
|||||||
@@ -454,7 +454,7 @@ public class DeviceInfoServiceImpl implements DeviceInfoService {
|
|||||||
|
|
||||||
String typeCode = typeCodeMap.getOrDefault(deviceType, "其他");
|
String typeCode = typeCodeMap.getOrDefault(deviceType, "其他");
|
||||||
List<DeviceMonitorDataRespVO.Row> rows = this.getRealTimeList(typeCode, list,tenantId);
|
List<DeviceMonitorDataRespVO.Row> rows = this.getRealTimeList(typeCode, list,tenantId);
|
||||||
res.add(new DeviceMonitorDataRespVO(typeNameMap.get(deviceType), rows));
|
res.add(new DeviceMonitorDataRespVO(deviceType,typeNameMap.get(deviceType), rows));
|
||||||
}
|
}
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
|||||||
Reference in New Issue
Block a user