| | |
| | | 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); |
| | |
| | | List<PaperExcelVO> list = examPaperService.getPaperExcelById(id); |
| | | ExcelUtils.export(response,"个人练习",list,PaperExcelVO.class); |
| | | } |
| | | |
| | | @RequestMapping(value = "/list", method = RequestMethod.GET) |
| | | public RestResponse<List<ExamPaper>> list() { |
| | | return RestResponse.ok(examPaperService.list()); |
| | | } |
| | | } |