| | |
| | | import com.ruoyi.common.utils.DateUtils; |
| | | import com.ruoyi.common.utils.StringUtils; |
| | | import com.ruoyi.common.utils.security.ShiroUtils; |
| | | import com.ruoyi.doublePrevention.entity.PreventRiskDangerInfo; |
| | | import com.ruoyi.doublePrevention.service.RiskService; |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | |
| | | public String detailDangerRectify(@PathVariable("id") Long id, ModelMap mmap) { |
| | | //隐患排查实体 |
| | | HiddenDangerCheckPoint hiddenDangerCheckPoint = hiddenDangerCheckPointService.selectHiddenDangerCheckPointById(Long.valueOf(id)); |
| | | PreventRiskDangerInfo dangerInfo = riskService.getDangerInfoById(hiddenDangerCheckPoint.getId()); |
| | | if (ObjectUtils.isNotEmpty(dangerInfo)){ |
| | | hiddenDangerCheckPoint.setHazardCode(dangerInfo.getHazardCode()); |
| | | hiddenDangerCheckPoint.setDangerSrc(dangerInfo.getDangerSrc()); |
| | | hiddenDangerCheckPoint.setDangerReason(dangerInfo.getDangerReason()); |
| | | hiddenDangerCheckPoint.setHazardDangerType(dangerInfo.getHazardDangerType()); |
| | | hiddenDangerCheckPoint.setDangerResult(dangerInfo.getDangerResult()); |
| | | } |
| | | mmap.put("hdcp", hiddenDangerCheckPoint); |
| | | return prefix + "/detailDangerRectify"; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 隐患整改延期 |
| | | * 隐患整改延期 - 保存 |
| | | */ |
| | | @Log(title = "隐患上报", businessType = BusinessType.DELETE) |
| | | @PostMapping("/rectifyTimeOut") |
| | | @ResponseBody |
| | | @Transactional |
| | | public AjaxResult rectifyTimeOut(HiddenDangerCheckPoint hdcp) { |
| | | public AjaxResult rectifyTimeOutSave(HiddenDangerCheckPoint hdcp) { |
| | | if(ObjectUtils.isEmpty(hdcp.getId())){ |
| | | return AjaxResult.error("id不能为空"); |
| | | } |
| | |
| | | return AjaxResult.success(); |
| | | } |
| | | |
| | | |
| | | } |