| | |
| | | if (checkUnit == null){
|
| | | throw new RuntimeException("基础检查点不存在");
|
| | | }
|
| | | System.out.println("通过一次检验");
|
| | | // System.out.println("通过一次检验");
|
| | | PreventRiskControlMeasure controlMeasure = riskControlMeasureService.getPreventRiskControlMeasureById(checkUnit.getControlMeasureId());
|
| | | if (controlMeasure == null){
|
| | | throw new RuntimeException("管控措施已经被删除");
|
| | | }
|
| | | System.out.println("通过二次检验");
|
| | | // System.out.println("通过二次检验");
|
| | | //封装数据
|
| | | checkAndMeasure.setCheckId(hdcp.getCheckId());
|
| | | checkAndMeasure.setDangerCheckPointId(id);
|
| | |
| | | checkAndMeasure.setControlMeasureId(controlMeasure.getId());
|
| | | checkAndMeasure.setCheckContent(controlMeasure.getCheckContent());
|
| | | checkAndMeasure.setCheckResult((byte) 4);
|
| | | System.out.println("数据封装完成");
|
| | | // System.out.println("数据封装完成");
|
| | | //写入核查任务检查点与管控措施信息
|
| | | int result = preventRiskDangerCheckAndMeasureService.insertCheckAndMeasure(checkAndMeasure);
|
| | | if (result <1){
|
| | |
| | |
|
| | | String dangerInfoUuid = UUID.randomUUID().toString();
|
| | | PreventRiskDangerInfo dangerInfo = new PreventRiskDangerInfo();
|
| | | if (ObjectUtils.isNotEmpty(hdcp.getDangerSrc())){
|
| | | throw new RuntimeException("隐患来源为空");
|
| | | }
|
| | | if (ObjectUtils.isNotEmpty(hdcp.getHazardDangerType())){
|
| | | throw new RuntimeException("隐患类型为空");
|
| | | }
|
| | |
|
| | | dangerInfo.setUuid(dangerInfoUuid);
|
| | | dangerInfo.setDangerCheckPointId(id);
|