1/device/detail/gongdianChart。供电图表数据需修复

2/地图实时数据接口优化
This commit is contained in:
wyw
2024-09-13 19:37:41 +08:00
parent a29e547c4e
commit 9213e44988
4 changed files with 279 additions and 208 deletions

View File

@@ -1664,6 +1664,9 @@ public class DeviceServiceImpl implements IDeviceService {
HashMap<String, Object> dataListMap = new HashMap<>();
List<DeviceLog> deviceLogs1 = collect.get(modelDevice.getIdentifier());
if(null == deviceLogs1){
continue;
}
deviceLogs1.sort(Comparator.comparing(DeviceLog::getCreateTime));
dataListMap.put("name", modelDevice.getModelName());
if (StringUtils.isNotEmpty(modelDevice.getSpecs())) {