| | |
| | | @ResponseBody |
| | | @Transactional |
| | | public AjaxResult addDangerReportSave(HiddenDangerCheckPoint hdcp) { |
| | | if (ObjectUtils.isEmpty(hdcp.getCheckPerson())){ |
| | | throw new RuntimeException("检查人不能为空"); |
| | | } |
| | | if (ObjectUtils.isEmpty(hdcp.getFindTime())){ |
| | | throw new RuntimeException("发现时间不能为空"); |
| | | } |
| | | HiddenDangerCheck hiddenDangerCheck = new HiddenDangerCheck(); |
| | | hiddenDangerCheck.setCreateBy(ShiroUtils.getLoginName());//创建者 |
| | | hiddenDangerCheck.setCreateTime(DateUtils.getNowDate());//获取创建时间 |
| | |
| | | HiddenDangerCheck hiddenDangerCheck = new HiddenDangerCheck(); |
| | | // hiddenDangerCheck.setCreateBy(ShiroUtils.getLoginName());//创建者 |
| | | // hiddenDangerCheck.setCreateTime(DateUtils.getNowDate());//获取创建时间 |
| | | |
| | | if (ObjectUtils.isEmpty(hdcp.getCheckPerson())){ |
| | | throw new RuntimeException("检查人不能为空"); |
| | | } |
| | | if (ObjectUtils.isEmpty(hdcp.getFindTime())){ |
| | | throw new RuntimeException("发现时间不能为空"); |
| | | } |
| | | hiddenDangerCheck.setCreateBy(ShiroUtils.getLoginName());//创建者 |
| | | hiddenDangerCheck.setCreateTime(hdcp.getRectifyCreateTime());//获取创建时间 |
| | | |
| | |
| | | |
| | | /** |
| | | * 修改判定隐患上报保存 |
| | | * todo-2022 隐患核查(判定隐患) 以判定的隐患,才需要上报 |
| | | */ |
| | | @Log(title = "修改判定隐患上报保存", businessType = BusinessType.UPDATE) |
| | | @PostMapping("/editJudgeDangerReportSave") |
| | |
| | | hiddenDangerCheckPoint.setStage(TrHiddenDangerCheckConstants.DANGER_STAGE_PLAN_EXAMINE);//隐患核查阶段(数据进入到隐患核查阶段) |
| | | hiddenDangerCheckPoint.setExamineStatus(TrHiddenDangerCheckConstants.EXAMINE_STATUS_NOT_EXAMINE);//核查状态(待核查) |
| | | |
| | | // // todo-2022 隐患信息判定 |
| | | // // |
| | | // int result = riskService.updateDangerInfoJudge(hiddenDangerCheckPoint); |
| | | // if (result < 1){ |
| | | // throw new RuntimeException("整改信息保存失败"); |