diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/CheckReportController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/CheckReportController.java index ff4c182..0f7f430 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/CheckReportController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/CheckReportController.java @@ -118,6 +118,18 @@ public class CheckReportController extends BaseController { } + /** + * 详情 + */ + @RequiresPermissions("system:check:detail") + @GetMapping("/detail/{checkId}") + public String detail(@PathVariable("checkId") String checkId, ModelMap mmap) { + TdCheckReportDTO tdCheckReportDTO = checkReportManager.getTdCheckReportDTO(checkId); + mmap.put("tdCheckReportDTO", tdCheckReportDTO); + return prefix + "/detail"; + } + + /** * 详情 */ @@ -142,9 +154,9 @@ public class CheckReportController extends BaseController { /** * 自查 */ - @RequiresPermissions("system:check:selfcheck") - @GetMapping("/selfcheck/{checkId}") - public String selfcheck(@PathVariable("checkId") String checkId, ModelMap mmap) { + @RequiresPermissions("system:check:selfCheck") + @GetMapping("/selfCheck/{checkId}") + public String selfCheck(@PathVariable("checkId") String checkId, ModelMap mmap) { TdCheckReportDTO tdCheckReportDTO = checkReportManager.getTdCheckReportDTO(checkId); mmap.put("tdCheckReportDTO", tdCheckReportDTO); return prefix + "/selfcheck"; @@ -154,11 +166,11 @@ public class CheckReportController extends BaseController { /** * 保存自查结果 */ - @RequiresPermissions("system:check:selfcheck") + @RequiresPermissions("system:check:selfCheck") @Log(title = "检查报告管理", businessType = BusinessType.CHECK) - @PostMapping("/selfcheckSave") + @PostMapping("/selfCheckSave") @ResponseBody - public AjaxResult selfcheckSave(@RequestBody TdCheckReportDTO checkReportDTO) { + public AjaxResult selfCheckSave(@RequestBody TdCheckReportDTO checkReportDTO) { return toAjax(checkReportManager.saveOrUpdate(checkReportDTO)); }