Răsfoiți Sursa

Merge branch 'V0.0.9' of http://10.87.21.221:8000/jzyd_yyds/soc into V0.0.9

zhulu 1 an în urmă
părinte
comite
cdb2358eaa

+ 2 - 1
soc-modules/soc-modules-iot/src/main/java/com/xunmei/iot/service/impl/IotBoardServiceImpl.java

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