From 001e240b3b0f4a7b9f3cc41e109427e728296a1a Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Wed, 7 Aug 2024 11:32:31 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E8=80=83=E8=AF=95=E6=80=BB=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../system/count/TdExamnumController.java | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/TdExamnumController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/TdExamnumController.java index 80fddfc..2bc6649 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/TdExamnumController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/system/count/TdExamnumController.java @@ -29,14 +29,13 @@ import javax.servlet.http.HttpServletRequest; /** * 考试结果Controller - * + * * @author ruoyi * @date 2024-04-10 */ @Controller @RequestMapping("/system/examnum") -public class TdExamnumController extends BaseController -{ +public class TdExamnumController extends BaseController { private String prefix = "system/examnum"; @Autowired @@ -45,10 +44,17 @@ public class TdExamnumController extends BaseController @Resource private UserExamManager userExamManager; - @RequiresPermissions("system:examnum:view") + + @RequiresPermissions("system:examnum:countExam") @GetMapping() - public String examnum() - { + public String countExam() { + return prefix + "/countExam"; + } + + + @GetMapping("/examnum/{examId}") + public String examnum(@PathVariable("examId") String examId, ModelMap mmap) { + mmap.put("examId",examId); return prefix + "/examnum"; } @@ -87,6 +93,4 @@ public class TdExamnumController extends BaseController } - - }