| | |
| | | ExamPaper examPaper = examPaperService.savePaperFromVM(model, getCurrentUser()); |
| | | ExamPaperEditRequestVO newVM = examPaperService.examPaperToVM(examPaper.getId()); |
| | | |
| | | // 加入延时队列,定时试卷结束时记录缺考学生 |
| | | if (examPaper.getPaperType() == 4) { |
| | | examPaperService.addTimeTask(examPaper); |
| | | } |
| | | return RestResponse.ok(newVM); |
| | | } |
| | | |
| | | /** |
| | | * 补考 |
| | | * @param model 数据 |
| | | * @return 操作结果 |
| | | */ |
| | | @RequestMapping(value = "/missExam", method = RequestMethod.POST) |
| | | public RestResponse<String> missExam(@RequestBody ExamPaperEditRequestVM model) { |
| | | examPaperService.missExam(model); |
| | | return RestResponse.ok("操作成功"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/select/{id}", method = RequestMethod.POST) |
| | | public RestResponse<ExamPaperEditRequestVO> select(@PathVariable Integer id) { |
| | | ExamPaperEditRequestVO vm = examPaperService.examPaperToVM(id); |