From eb4763f3f20f66420f6dcb0899d38db2f2aefedc Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Thu, 15 Aug 2024 15:59:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=A3=80=E6=9F=A5=E8=AF=A6=E6=83=85?= =?UTF-8?q?=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 | 1 + .../system/check/TdCheckResultController.java | 12 ++++++++++-- 2 files changed, 11 insertions(+), 2 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 2c9ef07..a13422d 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 @@ -134,6 +134,7 @@ public class CheckReportController extends BaseController { * 详情 */ @GetMapping("/view/{checkId}") + @ResponseBody public AjaxResult view(@PathVariable("checkId") String checkId) { return AjaxResult.success(checkReportManager.getTdCheckReportDTO(checkId)); } diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/TdCheckResultController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/TdCheckResultController.java index a56b6a8..6b86ae8 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/TdCheckResultController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/check/TdCheckResultController.java @@ -16,14 +16,12 @@ import com.ruoyi.system.service.check.TdCheckTypeService; import com.ruoyi.web.controller.manager.CheckReportManager; import com.ruoyi.web.controller.manager.SysAreaManager; import org.apache.shiro.authz.annotation.RequiresPermissions; -import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.ModelMap; import org.springframework.web.bind.annotation.*; import javax.annotation.Resource; import java.util.List; -import java.util.Objects; @Controller @RequestMapping("/system/checkresult") @@ -108,6 +106,16 @@ public class TdCheckResultController extends BaseController { return toAjax(checkReportManager.deletedTdCheckReportIds(ids)); } + + /** + * 详情 + */ + @GetMapping("/view/{checkId}") + @ResponseBody + public AjaxResult view(@PathVariable("checkId") String checkId) { + return AjaxResult.success(checkReportManager.getTdCheckReportDTO(checkId)); + } + /** * 检查 报告管理 */