| | |
| | | import com.mindskip.xzs.base.RestResponse; |
| | | import com.mindskip.xzs.domain.ExamPaper; |
| | | import com.mindskip.xzs.domain.ExamPaperSubject; |
| | | import com.mindskip.xzs.domain.vo.ExamTemplatesVO; |
| | | import com.mindskip.xzs.domain.vo.PaperExcelVO; |
| | | import com.mindskip.xzs.domain.vo.UserVO; |
| | | import com.mindskip.xzs.service.ExamPaperDepartmentService; |
| | |
| | | return RestResponse.ok("操作成功"); |
| | | } |
| | | |
| | | /** |
| | | * 补考 |
| | | * @param model 数据 |
| | | * @return 操作结果 |
| | | */ |
| | | @RequestMapping(value = "/missExamByTemplateId", method = RequestMethod.POST) |
| | | public RestResponse<String> missExamByTemplateId(@RequestBody ExamTemplatesVO model) { |
| | | examPaperService.missExamByTemplateId(model); |
| | | return RestResponse.ok("操作成功"); |
| | | } |
| | | |
| | | @RequestMapping(value = "/select/{id}", method = RequestMethod.POST) |
| | | public RestResponse<ExamPaperEditRequestVO> select(@PathVariable Integer id) { |
| | | ExamPaperEditRequestVO vm = examPaperService.examPaperToVM(id); |
| | |
| | | List<Integer> adminDeptIds = getAdminDeptIds(); |
| | | return RestResponse.ok(examPaperService.selectStudent(userVO, adminDeptIds)); |
| | | } |
| | | |
| | | @RequestMapping(value = "/queryCondition", method = RequestMethod.GET) |
| | | public RestResponse<List<ExamPaper>> queryCondition() { |
| | | return RestResponse.ok(examPaperService.queryCondition()); |
| | | } |
| | | } |