| | |
| | | if (ObjectUtils.isEmpty(hdcp.getFindTime())){ |
| | | throw new RuntimeException("发现时间不能为空"); |
| | | } |
| | | if (ObjectUtils.isEmpty(hdcp.getDangerSrc())){ |
| | | throw new RuntimeException("隐患来源不能为空"); |
| | | } |
| | | HiddenDangerCheck hiddenDangerCheck = new HiddenDangerCheck(); |
| | | hiddenDangerCheck.setCreateBy(ShiroUtils.getLoginName());//创建者 |
| | | hiddenDangerCheck.setCreateTime(DateUtils.getNowDate());//获取创建时间 |
| | |
| | | if (ObjectUtils.isEmpty(hdcp.getFindTime())){ |
| | | throw new RuntimeException("发现时间不能为空"); |
| | | } |
| | | if (ObjectUtils.isEmpty(hdcp.getDangerSrc())){ |
| | | throw new RuntimeException("隐患来源不能为空"); |
| | | } |
| | | hiddenDangerCheck.setCreateBy(ShiroUtils.getLoginName());//创建者 |
| | | hiddenDangerCheck.setCreateTime(hdcp.getRectifyCreateTime());//获取创建时间 |
| | | |