| | |
| | | package com.ruoyi.project.tr.specialCheck.controller; |
| | | |
| | | import com.ruoyi.common.constant.DualControlConstants; |
| | | import com.ruoyi.common.utils.BeanCopyUtils; |
| | | import com.ruoyi.doublePrevention.entity.PreventRiskControlMeasure; |
| | | import com.ruoyi.doublePrevention.entity.dto.req.PreventRiskControlMeasureDeleteReqDTO; |
| | |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | | import com.ruoyi.framework.web.page.TableDataInfo; |
| | | import com.ruoyi.project.dc.accidentInformation.domain.AccidentInformation; |
| | | import com.ruoyi.project.enumerate.DcAttachmentTypeEnum; |
| | | import com.ruoyi.project.system.attachment.domain.Attachment; |
| | | import com.ruoyi.project.tr.report.domain.Danger; |
| | | import com.ruoyi.project.tr.riskList.domain.RiskList; |
| | | import com.ruoyi.project.tr.riskList.service.IRiskListService; |
| | |
| | | } |
| | | |
| | | /** |
| | | * 事故信息详情 |
| | | */ |
| | | @GetMapping("/detail/{indexId}") |
| | | public String detail(@PathVariable("indexId") Long indexId, ModelMap mmap) |
| | | { |
| | | TbSpecialCheckTaskLog specialCheckTaskLog = specialCheckTaskService.getSpecialCheckTaskLogByIndexId(indexId); |
| | | |
| | | TbSpecialCheckTaskLogDateDTO tbSpecialCheckTaskLogDateDTO = BeanCopyUtils.copyBean(specialCheckTaskLog, TbSpecialCheckTaskLogDateDTO.class); |
| | | Instant instant = specialCheckTaskLog.getCheckDate().atZone(ZoneId.systemDefault()).toInstant(); |
| | | tbSpecialCheckTaskLogDateDTO.setCheckDate(Date.from(instant)); |
| | | mmap.put("specialCheckTaskLog",tbSpecialCheckTaskLogDateDTO); |
| | | List<RiskList> riskList = riskListService.listHazardSource(); |
| | | mmap.put("hazardList", riskList); |
| | | List<TbBaseCheckTask> listResult = tbBaseCheckService.listTbBaseCheckTask(); |
| | | mmap.put("tbBaseCheckTask", listResult); |
| | | return prefix + "/edit"; |
| | | } |
| | | |
| | | /** |
| | | * 修改保存 |
| | | */ |
| | | @PostMapping("/edit") |