双重预防项目-国泰新华二开定制版
16639036659
2024-06-19 ecb064d243bcc5eabefe96612f387e40cc4719d8
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;
    }
    /**
@@ -1339,13 +1339,10 @@
        return preventRiskDangerCheckLogService.updateCheckLog(checkId, hdcp.getMobileCode());
    }
    @Override
    public PreventRiskDangerInfo getDangerInfoByDangerCheckPointId(Long checkId) {
        return preventRiskDangerInfoService.getDangerInfoByDangerCheckPointId(checkId);
    }
    //    /**