|
|
@@ -376,16 +376,24 @@ public class IotBoardServiceImpl implements IotBoardService {
|
|
|
//录像天数存储
|
|
|
List<Map<String, String>> videoCheckMap = iotBoardMapper.selectVideoDaysStorage(orgPath, new Date());
|
|
|
HashMap<Integer, Integer> hashMap = new LinkedHashMap<>();
|
|
|
- for (Map<String, String> map : videoCheckMap) {
|
|
|
- hashMap.put(Integer.parseInt(map.get("planDays")), Integer.parseInt(map.get(MAP_VALUE)));
|
|
|
- }
|
|
|
IotBoardTotalData.RecordingStorage storage = new IotBoardTotalData.RecordingStorage();
|
|
|
+ if (!videoCheckMap.isEmpty()) {
|
|
|
+ for (Map<String, String> map : videoCheckMap) {
|
|
|
+ hashMap.put(Integer.parseInt(map.get("planDays")), Integer.parseInt(map.get(MAP_VALUE)));
|
|
|
+ }
|
|
|
+ String string = videoCheckMap.get(0).get("time");
|
|
|
+ storage.setUpdateTime(DateUtil.parseDateTime(string));
|
|
|
+ }
|
|
|
+
|
|
|
storage.setHashmap(hashMap);
|
|
|
totalData.setRecordingStorage(storage);
|
|
|
|
|
|
IotBoardTotalData.VideoDiagnostic videoDiagnostic = videoDiagnosisService.selectVideoDiagnostic(orgPath, now, channelDataOffsetDay);
|
|
|
totalData.setVideoDiagnostic(videoDiagnostic);
|
|
|
|
|
|
+ totalData.setAirConditionerInfo(new IotBoardTotalData.AirConditionerInfo());
|
|
|
+ totalData.setUpsInfo(new IotBoardTotalData.UpsInfo());
|
|
|
+
|
|
|
return totalData;
|
|
|
}
|
|
|
|
|
|
@@ -423,7 +431,7 @@ public class IotBoardServiceImpl implements IotBoardService {
|
|
|
} else {
|
|
|
videoInspection.setLostRate(String.format("%.2f", (lostTotal * 100.0 / total)) + "%");
|
|
|
}
|
|
|
-
|
|
|
+ videoInspection.setUpdateTime(videoIntegrityCheckLogs.get(0).getUpdateTime());
|
|
|
//硬盘异常率
|
|
|
//获取硬盘数量
|
|
|
int diskNum = iotDvrDiskMapper.selectDiskCount(org.getPath());
|