| | |
| | | import com.ruoyi.doublePrevention.entity.PreventRiskDangerInfo; |
| | | import com.ruoyi.doublePrevention.entity.dto.resp.PreventRiskUnitCodeAndNameListQueryRespDTO; |
| | | import com.ruoyi.doublePrevention.service.RiskService; |
| | | import com.ruoyi.doublePrevention.service.baseService.PreventRiskDangerConfirmLogService; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | |
| | | |
| | | @Autowired |
| | | private RiskService riskService; |
| | | |
| | | @Autowired |
| | | private PreventRiskDangerConfirmLogService confirmLogService; |
| | | |
| | | @GetMapping() |
| | | public String hiddenDangerCheck(ModelMap mmap) { |
| | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 修改隐患上报 |
| | | */ |
| | |
| | | // todo-2022 修改前查询 |
| | | PreventRiskDangerInfo dangerInfo = riskService.getDangerInfoById(hdcp.getId()); |
| | | |
| | | hdcp.setHazardCode(dangerInfo.getHazardCode()); |
| | | hdcp.setDangerSrc(dangerInfo.getDangerSrc()); |
| | | hdcp.setDangerReason(dangerInfo.getDangerReason()); |
| | | hdcp.setHazardDangerType(dangerInfo.getHazardDangerType()); |
| | | hdcp.setDangerResult(dangerInfo.getDangerResult()); |
| | | if (ObjectUtils.isNotEmpty(dangerInfo)){ |
| | | hdcp.setHazardCode(dangerInfo.getHazardCode()); |
| | | hdcp.setDangerSrc(dangerInfo.getDangerSrc()); |
| | | hdcp.setDangerReason(dangerInfo.getDangerReason()); |
| | | hdcp.setHazardDangerType(dangerInfo.getHazardDangerType()); |
| | | hdcp.setDangerResult(dangerInfo.getDangerResult()); |
| | | } |
| | | |
| | | mmap.put("hiddenDangerCheckPoint", hdcp); |
| | | |
| | |
| | | } |
| | | int i = hiddenDangerCheckPointService.updateHiddenDangerCheckPoint(hiddenDangerCheckPoint); |
| | | |
| | | int result = confirmLogService.saveConfirmLog(hiddenDangerCheckPoint); |
| | | if (result < 1){ |
| | | return AjaxResult.error("操作失败"); |
| | | } |
| | | |
| | | hiddenDangerCheckPointService.getTaskCountTotal(getSysUser().getUserId());//查询未执行任务总数量并推送 |
| | | |
| | | return toAjax(i); |