| | |
| | | resultVO.setCode(ErrorCodes.REQUEST_PARAM_ERROR.getCode());
|
| | |
|
| | | if (insertReqBO.getHazardCode().isEmpty()){
|
| | | resultVO.setMsg("风险分析对象编码");
|
| | | return resultVO;
|
| | | throw new RuntimeException("风险分析对象编码为空");
|
| | | }
|
| | | if (ObjectUtils.isEmpty(insertReqBO.getRiskUnitId())){
|
| | | resultVO.setMsg("所属安全风险分析单元");
|
| | | return resultVO;
|
| | | throw new RuntimeException("安全风险分析单元为空");
|
| | | }
|
| | | if (ObjectUtils.isEmpty(insertReqBO.getStopStartTime())){
|
| | | resultVO.setMsg("装置停用或者检维修开始时间");
|
| | | return resultVO;
|
| | | throw new RuntimeException("装置停用或者检维修开始时间为空");
|
| | | }
|
| | | if (ObjectUtils.isEmpty(insertReqBO.getStopEndTime())){
|
| | | resultVO.setMsg("装置停用或者检维修结束时间");
|
| | | return resultVO;
|
| | | throw new RuntimeException("装置停用或者检维修结束时间为空");
|
| | | }
|
| | | if (insertReqBO.getStopReason().isEmpty()){
|
| | | resultVO.setMsg("描述停用原因");
|
| | | return resultVO;
|
| | | throw new RuntimeException("停用原因为空");
|
| | | }
|
| | |
|
| | | Date date = new Date();
|