|
@@ -435,8 +435,8 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, Exam> implements IE
|
|
|
|
|
|
//设置答题卡
|
|
|
setAnswerCard(rootQuestionList, answerCardList);
|
|
|
+ dto.setUserExamQuestionList(rootQuestionList);
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
dto.setAnswerCardList(answerCardList);
|
|
|
return dto;
|
|
@@ -802,7 +802,7 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, Exam> implements IE
|
|
|
}
|
|
|
|
|
|
//获取回答过的题目
|
|
|
- List<Integer> indexList = examAnswers.stream().map(ExamAnswerDTO::getIndex).collect(toList());
|
|
|
+ List<String> indexList = examAnswers.stream().map(ExamAnswerDTO::getIndex).collect(toList());
|
|
|
//获取没回答的客观题题目
|
|
|
List<UserExamQuestion> objectiveNoAnswerList = userExamQuestionList.stream().filter(o -> !indexList.contains(o.getQuestionIndex())).filter(o -> !o.getQuestionType().equals(QuestionType.SIMPLE.getCode())).collect(Collectors.toList());
|
|
|
objectiveNoAnswerList.stream().forEach(o -> o.setIsRight(false));
|