|
|
@@ -407,6 +407,8 @@ public class IotBoardServiceImpl implements IotBoardService {
|
|
|
List<MediatorVideoIntegrityCheckLog> videoIntegrityCheckLogs = iotBoardMapper.selectVideoCheckSelf(org.getPath(), DateUtil.format(offsetDay, "yyyy-MM-dd"), DateUtil.format(now, "yyyy-MM-dd"));
|
|
|
if (ObjectUtil.isEmpty(videoIntegrityCheckLogs)) {
|
|
|
videoInspection.setLostRate("-");
|
|
|
+ }else {
|
|
|
+ videoInspection.setUpdateTime(videoIntegrityCheckLogs.get(0).getUpdateTime());
|
|
|
}
|
|
|
//获取通道数量
|
|
|
Integer channelNums = dvrChannelMapper.selectChannelCount(org.getPath());
|
|
|
@@ -431,7 +433,6 @@ 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());
|