From 8445b512c089b9ad6dd4710ffdf657365f8f3dc1 Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Thu, 15 Aug 2024 14:57:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=A3=80=E6=9F=A5=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E5=AF=BC=E5=87=BA=E6=8E=A5=E5=8F=A3=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/check/CheckReportController.java | 24 ++++++++++++++----- 1 file changed, 18 insertions(+), 6 deletions(-) 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)); }