| | |
| | |
|
| | | 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);
|
| | |
| | | //设置本条数据上报开关为-关闭
|
| | | dangerInfo.setReportSwitch(SyncEnum.REPORT_OFF.getCode());
|
| | | }
|
| | |
|
| | | return preventRiskDangerInfoService.insertDangerInfo(dangerInfo);
|
| | | int result = preventRiskDangerInfoService.insertDangerInfo(dangerInfo);
|
| | | return result;
|
| | | }
|
| | |
|
| | | /**
|