双重预防项目-国泰新华二开定制版
zhouwenxuan
2023-07-12 4de0fb84ef81e08b507409c46607ea158b233195
src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventOverhaulLogServiceImpl.java
@@ -71,9 +71,9 @@
        ResultVO resultVO = new ResultVO<>();
        resultVO.setCode(ErrorCodes.REQUEST_PARAM_ERROR.getCode());
        if (insertReqBO.getHazardCode().isEmpty()){
            throw new RuntimeException("风险分析对象编码为空");
        }
//        if (insertReqBO.getHazardCode().isEmpty()){
//            throw new RuntimeException("风险分析对象编码为空");
//        }
        if (ObjectUtils.isEmpty(insertReqBO.getRiskUnitId())){
            throw new RuntimeException("安全风险分析单元为空");
        }