| | |
| | | |
| | | |
| | | |
| | | @GetMapping() |
| | | public String selectTbBaseCheckTaskPage(ModelMap mmap) |
| | | // @GetMapping() |
| | | // public String selectTbBaseCheckTaskPage(ModelMap mmap) |
| | | // { |
| | | // return prefix + "/specialCheckItemDangerLog"; |
| | | // } |
| | | @GetMapping("{id}") |
| | | public String specialCheckItemDangerLog(@PathVariable("id")String id,ModelMap modelMap) |
| | | { |
| | | modelMap.put("id",id); |
| | | return prefix + "/specialCheckItemDangerLog"; |
| | | } |
| | | |
| | | |
| | | |
| | | @PostMapping("/list") |
| | |
| | | |
| | | ResultVO<List<TbSpecialCheckItemDangerLog>> resultVO = itemDangerLogService.selectSpecialCheckItemDangerLogPage(itemDangerLogBO); |
| | | List<TbSpecialCheckItemDangerLogDTO> data = (List<TbSpecialCheckItemDangerLogDTO>) resultVO.getData(); |
| | | |
| | | List<PreventCJReportDangerInfo> dangerList = preventCJReportDangerInfoService.getDangerListForCheckTask(); |
| | | for (TbSpecialCheckItemDangerLogDTO log : data) { |
| | | for (PreventCJReportDangerInfo danger : dangerList) { |
| | | if (danger.getId().equals(log.getDangerId())){ |
| | | log.setDangerName(danger.getDangerName()); |
| | | } |
| | | } |
| | | } |
| | | |
| | | TableDataInfo dataTable = getDataTable(data); |
| | | dataTable.setTotal(resultVO.getCount()); |
| | | |