| | |
| | | /** |
| | | * 新增 |
| | | */ |
| | | @GetMapping("/add") |
| | | public String add(ModelMap mmap) |
| | | @GetMapping("/add/{id}") |
| | | // public String add(ModelMap mmap) |
| | | public String add(@PathVariable("id") String id, ModelMap mmap) |
| | | { |
| | | List<RiskList> riskList = riskListService.listHazardSource(); |
| | | List<PreventCJReportDangerInfo> dangerList = preventCJReportDangerInfoService.getDangerListForCheckTask(); |
| | |
| | | */ |
| | | @PostMapping("/edit") |
| | | @ResponseBody |
| | | public AjaxResult editSave(TbSpecialCheckScoreAndDangerLog scoreAndDangerLog) |
| | | public AjaxResult editSave(TbSpecialCheckScoreAndDangerLogEditBO scoreAndDangerEditLog) |
| | | { |
| | | ResultVO<TbSpecialCheckScoreAndDangerLog> resultVO = scoreAndDangerDangerLogService.updateSpecialCheckScoreAndDangerLog(scoreAndDangerLog); |
| | | ResultVO<TbSpecialCheckScoreAndDangerLog> resultVO = scoreAndDangerDangerLogService.updateSpecialCheckScoreAndDangerLog(scoreAndDangerEditLog); |
| | | String code = resultVO.getCode(); |
| | | if ("200".equals(code)){ |
| | | return toAjax(1); |