feat:添加判断

pg_adapter
wangxy 9 months ago
parent 2a045a24a9
commit 06d162d5a4

@ -103,16 +103,22 @@ public class PaperController extends BaseController {
@ApiOperation("详情") @ApiOperation("详情")
@GetMapping("/paperResult/{paperId}") @GetMapping("/toView/{paperId}")
@ResponseBody public String toView(@PathVariable("paperId") String paperId, ModelMap mmap) {
public String paperResult(@PathVariable("paperId") String paperId, ModelMap mmap) { mmap.put("paperId", paperId);
ExamResultRespDTO examResultRespDTO = paperManager.paperResult(paperId);
mmap.put("examResultRespDTO", examResultRespDTO);
return prefix + "/view"; return prefix + "/view";
} }
@ApiOperation("详情")
@GetMapping("/paperResult/{paperId}")
@ResponseBody
public AjaxResult paperResult(@PathVariable("paperId") String paperId) {
return AjaxResult.success( paperManager.paperResult(paperId));
}
@ApiOperation("检测进行中的考试") @ApiOperation("检测进行中的考试")
@GetMapping("/checkProcess") @GetMapping("/checkProcess")
@ResponseBody @ResponseBody

Loading…
Cancel
Save