From 06d162d5a42a774ac7fc49c6717b5640e91c91b9 Mon Sep 17 00:00:00 2001 From: wangxy <1356089412@qq.com> Date: Fri, 5 Jul 2024 15:11:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=B7=BB=E5=8A=A0=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web/controller/exam/PaperController.java | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/PaperController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/PaperController.java index 920b194..7fee43b 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/PaperController.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/exam/PaperController.java @@ -103,16 +103,22 @@ public class PaperController extends BaseController { @ApiOperation("详情") - @GetMapping("/paperResult/{paperId}") - @ResponseBody - public String paperResult(@PathVariable("paperId") String paperId, ModelMap mmap) { - ExamResultRespDTO examResultRespDTO = paperManager.paperResult(paperId); - mmap.put("examResultRespDTO", examResultRespDTO); + @GetMapping("/toView/{paperId}") + public String toView(@PathVariable("paperId") String paperId, ModelMap mmap) { + mmap.put("paperId", paperId); return prefix + "/view"; } + @ApiOperation("详情") + @GetMapping("/paperResult/{paperId}") + @ResponseBody + public AjaxResult paperResult(@PathVariable("paperId") String paperId) { + return AjaxResult.success( paperManager.paperResult(paperId)); + } + + @ApiOperation("检测进行中的考试") @GetMapping("/checkProcess") @ResponseBody