| | |
| | | package com.ruoyi.project.tr.specialCheck.controller; |
| | | |
| | | import com.ruoyi.doublePrevention.entity.CJReport.PreventCJReportDangerInfo; |
| | | import com.ruoyi.doublePrevention.service.baseService.PreventCJReportDangerInfoService; |
| | | import com.ruoyi.doublePrevention.vo.ResultVO; |
| | | import com.ruoyi.framework.web.controller.BaseController; |
| | | import com.ruoyi.framework.web.domain.AjaxResult; |
| | |
| | | @Autowired |
| | | private TbBaseCheckService tbBaseCheckService; |
| | | |
| | | @Autowired |
| | | private PreventCJReportDangerInfoService preventCJReportDangerInfoService; |
| | | |
| | | |
| | | |
| | | @GetMapping() |
| | |
| | | } |
| | | |
| | | /** |
| | | * 新增任务 |
| | | * 新增 |
| | | */ |
| | | @GetMapping("/add") |
| | | public String add(ModelMap mmap) |
| | | { |
| | | ResultVO<List<RiskList>> resultVO = riskListService.listHazardSource(); |
| | | Object data = resultVO.getData(); |
| | | mmap.put("hazardList", data); |
| | | List<RiskList> riskList = riskListService.listHazardSource(); |
| | | List<PreventCJReportDangerInfo> dangerList = preventCJReportDangerInfoService.getDangerListForCheckTask(); |
| | | mmap.put("hazardList", riskList); |
| | | mmap.put("dangerList", dangerList); |
| | | return prefix + "/add"; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 新增任务保存 |
| | | * 新增保存 |
| | | */ |
| | | @PostMapping("/add") |
| | | @ResponseBody |