| | |
| | | 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() |
| | |
| | | |
| | | @PostMapping("/list") |
| | | @ResponseBody |
| | | public TableDataInfo selectSpecialCheckItemDangerLogPage(@RequestBody TbSpecialCheckItemDangerLogBO itemDangerLogBO ) |
| | | public TableDataInfo selectSpecialCheckItemDangerLogPage(TbSpecialCheckItemDangerLogBO itemDangerLogBO ) |
| | | { |
| | | |
| | | ResultVO<List<TbSpecialCheckItemDangerLog>> resultVO = itemDangerLogService.selectSpecialCheckItemDangerLogPage(itemDangerLogBO); |
| | |
| | | } |
| | | |
| | | /** |
| | | * 新增任务 |
| | | * 新增 |
| | | */ |
| | | @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 |
| | | public AjaxResult addSpecialItemDanger(@RequestBody TbSpecialCheckItemDangerLog itemDangerLog){ |
| | | public AjaxResult addSpecialItemDanger(TbSpecialCheckItemDangerLog itemDangerLog){ |
| | | |
| | | ResultVO<TbSpecialCheckItemDangerLog> resultVO = itemDangerLogService.addSpecialItemDanger(itemDangerLog); |
| | | String code = resultVO.getCode(); |
| | |
| | | */ |
| | | @PostMapping("/edit") |
| | | @ResponseBody |
| | | public AjaxResult editSave(@RequestBody TbSpecialCheckItemDangerLogUpdateBO updateBO) |
| | | public AjaxResult editSave(TbSpecialCheckItemDangerLogUpdateBO updateBO) |
| | | { |
| | | ResultVO<TbSpecialCheckItemDangerLog> resultVO = itemDangerLogService.updateSpecialCheckItemDangerLog(updateBO); |
| | | String code = resultVO.getCode(); |
| | |
| | | |
| | | @PostMapping("/remove") |
| | | @ResponseBody |
| | | public AjaxResult remove(@RequestBody TbSpecialCheckItemDangerLogUpdateBO updateBO){ |
| | | public AjaxResult remove(TbSpecialCheckItemDangerLogUpdateBO updateBO){ |
| | | ResultVO<TbSpecialCheckItemDangerLog> resultVO = itemDangerLogService.deleteTbSpecialItemDangerTaskLog(updateBO); |
| | | String code = resultVO.getCode(); |
| | | if ("200".equals(code)){ |