From 303223dc45f41cdfb14364a7aa7b643f91421b76 Mon Sep 17 00:00:00 2001
From: 16639036659 <577530412@qq.com>
Date: 星期三, 08 十一月 2023 16:19:50 +0800
Subject: [PATCH] 添加检查上报

---
 src/main/java/com/ruoyi/doublePrevention/service/impl/RiskServiceImpl.java |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/src/main/java/com/ruoyi/doublePrevention/service/impl/RiskServiceImpl.java b/src/main/java/com/ruoyi/doublePrevention/service/impl/RiskServiceImpl.java
index 82a44f7..0c59298 100644
--- a/src/main/java/com/ruoyi/doublePrevention/service/impl/RiskServiceImpl.java
+++ b/src/main/java/com/ruoyi/doublePrevention/service/impl/RiskServiceImpl.java
@@ -1037,12 +1037,12 @@
 
         String dangerInfoUuid = UUID.randomUUID().toString();
         PreventRiskDangerInfo dangerInfo = new PreventRiskDangerInfo();
-        if (ObjectUtils.isEmpty(hdcp.getDangerSrc())){
-            throw new RuntimeException("隐患来源为空");
-        }
-        if (ObjectUtils.isEmpty(hdcp.getHazardDangerType())){
-            throw new RuntimeException("隐患类型为空");
-        }
+//        if (ObjectUtils.isEmpty(hdcp.getDangerSrc())){
+//            throw new RuntimeException("隐患来源为空");
+//        }
+//        if (ObjectUtils.isEmpty(hdcp.getHazardDangerType())){
+//            throw new RuntimeException("隐患类型为空");
+//        }
 
         dangerInfo.setUuid(dangerInfoUuid);
         dangerInfo.setDangerCheckPointId(id);
@@ -1089,8 +1089,8 @@
             //设置本条数据上报开关为-关闭
             dangerInfo.setReportSwitch(SyncEnum.REPORT_OFF.getCode());
         }
-
-        return preventRiskDangerInfoService.insertDangerInfo(dangerInfo);
+        int result = preventRiskDangerInfoService.insertDangerInfo(dangerInfo);
+        return result;
     }
 
     /**

--
Gitblit v1.9.2