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