智慧保安后台管理-外网
src/main/java/org/springblade/modules/simulateexam/service/impl/SimulateExamRecordServiceImpl.java
@@ -105,13 +105,13 @@
            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());
@@ -264,6 +264,7 @@
         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) {