|
|
@@ -1,6 +1,7 @@
|
|
|
package com.xunmei.iot.controller;
|
|
|
|
|
|
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import com.xunmei.common.core.web.domain.AjaxResult;
|
|
|
import com.xunmei.common.core.web.page.TableDataInfo;
|
|
|
import com.xunmei.iot.dto.dvrDisk.DvrDiskAppPageDto;
|
|
|
@@ -58,20 +59,20 @@ public class SmartOprationController {
|
|
|
AjaxResult ajaxResult = AjaxResult.success();
|
|
|
// 录像丢失
|
|
|
Integer videoCheckBadge = this.videoDiagnosisService.appVideoLoseBadge(orgId);
|
|
|
- if(videoCheckBadge>0){
|
|
|
+ if(ObjectUtil.isNotNull(videoCheckBadge) && videoCheckBadge>0){
|
|
|
ajaxResult.put("videoCheckBadge", videoCheckBadge);
|
|
|
}
|
|
|
|
|
|
// 视频质量
|
|
|
Integer videoDiagnosisBadge = this.videoDiagnosisService.appVideoQualityBadge(orgId);
|
|
|
- if(videoDiagnosisBadge>0)
|
|
|
+ if(ObjectUtil.isNotNull(videoDiagnosisBadge) && videoDiagnosisBadge>0)
|
|
|
{
|
|
|
ajaxResult.put("videoDiagnosisBadge", videoDiagnosisBadge);
|
|
|
}
|
|
|
|
|
|
// 硬盘
|
|
|
Integer dvrDiskBadge = this.dvrDiskService.badge(orgId);
|
|
|
- if(dvrDiskBadge>0)
|
|
|
+ if(ObjectUtil.isNotNull(dvrDiskBadge) && dvrDiskBadge>0)
|
|
|
{
|
|
|
ajaxResult.put("dvrDiskBadge", dvrDiskBadge);
|
|
|
}
|