| | |
| | | */ |
| | | @Log(title = "隐患核查--下一个核查人") |
| | | @PostMapping("/editNextConfirmSave") |
| | | @ResponseBody |
| | | public AjaxResult editNextConfirmSave(HiddenDangerCheckPoint hdcp) { |
| | | //获取当前更新用户信息 |
| | | User sysUser = getSysUser(); |
| | |
| | | if(ObjectUtils.isEmpty(hdcp.getId())){ |
| | | return AjaxResult.error("id不能为空"); |
| | | } |
| | | // report_status , 上报判定结果(0未判定 1不是隐患 2是隐患) |
| | | // if(ObjectUtils.isEmpty(hdcp.getReportStatus())){ |
| | | // return AjaxResult.error("判定结果不能为空"); |
| | | // } |
| | | // examine_user_id , 核查人id |
| | | if(ObjectUtils.isEmpty(hdcp.getExamineUserId())){ |
| | | return AjaxResult.error("核查人Id不能为空"); |
| | |
| | | if(ObjectUtils.isEmpty(hdcp.getExamineUserName())){ |
| | | return AjaxResult.error("核查人姓名不能为空"); |
| | | } |
| | | // examine_opinion 意见 |
| | | // if(ObjectUtils.isEmpty(hdcp.getRectifyDeadlineTime())){ |
| | | // return AjaxResult.error("核查意见不能为空"); |
| | | // } |
| | | int i = confirmLogService.saveConfirmLog(hdcp); |
| | | if (i < 1){ |
| | | return AjaxResult.error("操作失败"); |
| | | } |
| | | |
| | | return toAjax(i); |
| | | } |
| | | |