feat (farm): 设备中心

- 设备监控
This commit is contained in:
达富斌
2025-10-24 18:45:58 +08:00
parent 72d55f3e52
commit a9b833cc64
2 changed files with 2 additions and 1 deletions

View File

@@ -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;

View File

@@ -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;