| | |
| | | List<ExamSubjectChoicesVO> radioRandomSubjectList = examPaperService.queryRandomSubjectList(radio,25); |
| | | List<ExamSubjectChoicesVO> checkboxRandomSubjectList = examPaperService.queryRandomSubjectList(checkbox,10); |
| | | List<ExamSubjectChoicesVO> judgeRandomSubjectList = examPaperService.queryRandomSubjectList(judge,20); |
| | | // List<ExamSubjectChoicesVO> sortRandomSubjectList = examPaperService.queryRandomSubjectList(sort,5); |
| | | List<ExamSubjectChoicesVO> sortRandomSubjectList = examPaperService.queryRandomSubjectList(sort,5); |
| | | |
| | | //合并集合数据 |
| | | choicesVOList.addAll(radioRandomSubjectList); |
| | | choicesVOList.addAll(checkboxRandomSubjectList); |
| | | choicesVOList.addAll(judgeRandomSubjectList); |
| | | // choicesVOList.addAll(sortRandomSubjectList); |
| | | choicesVOList.addAll(sortRandomSubjectList); |
| | | |
| | | //取出考试id |
| | | List<Long> longList = choicesVOList.stream().map(ExamSubjectChoicesVO::getId).collect(Collectors.toList()); |
| | |
| | | for (ExamResultVO examResultVO : examResultVOS) { |
| | | SimulateExamAnswerRecord answerRecord = new SimulateExamAnswerRecord(); |
| | | answerRecord.setSimulateExamId(simulateExamScore.getSimulateExamId()); |
| | | answerRecord.setSubjectChoicesId(examResultVO.getSubjectChoicesId()); |
| | | answerRecord.setAnswerOption(examResultVO.getValue()); |
| | | answerRecord.setAnswerScore(examResultVO.getGrade()); |
| | | if (examResultVO.getGrade() > 0) { |