| | |
| | | import org.springblade.modules.exam.service.ExamPaperService; |
| | | import org.springblade.modules.exam.vo.ExamPaperSubjectVO; |
| | | import org.springblade.modules.exam.vo.ExamPaperVO; |
| | | import org.springblade.modules.exam.vo.ExamSubjectChoicesVO; |
| | | import org.springblade.modules.exam.wrapper.ExamPaperWrapper; |
| | | import org.springblade.modules.training.entity.TrainExam; |
| | | import org.springblade.modules.training.entity.TrainingRegistration; |
| | |
| | | @GetMapping("/queryRandomSubject") |
| | | @ApiOperationSupport(order = 8) |
| | | @ApiOperation(value = "考试题目绑定", notes = "传入exam") |
| | | public R<List> queryRandomSubject(@ApiParam(value = "主键集合") ExamPaper exam) { |
| | | List<ExamPaperSubjectVO> subject = examPaperService.queryRandomSubject(exam); |
| | | public R<List> queryRandomSubject(@ApiParam(value = "主键集合") ExamPaperVO exam) { |
| | | List<ExamSubjectChoicesVO> subject = examPaperService.queryRandomSubject(exam); |
| | | return R.data(subject); |
| | | } |
| | | |
| | |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 考试中页面刷新,1查询所有的答题信息,2查询所有的已答信息 3其他信息 |
| | | * @param examPaperVO 必须包含 scoreId |
| | | * @return |
| | | */ |
| | | @GetMapping("/getExamRefreshInfo") |
| | | public R getExamRefreshInfo(ExamPaperVO examPaperVO){ |
| | | return R.data(examPaperService.getExamRefreshInfo(examPaperVO)); |
| | | } |
| | | |
| | | |
| | | |
| | | } |