|
@@ -562,6 +562,7 @@ public class ExamServiceImpl extends ServiceImpl<ExamMapper, Exam> implements IE
|
|
|
for (Map.Entry<Integer, List<UserExamQuestion>> item : map.entrySet()) {
|
|
|
AnswerCardDTO answerCard = new AnswerCardDTO();
|
|
|
List<UserExamQuestion> questions = item.getValue();
|
|
|
+ answerCard.setQuestionType(item.getKey());
|
|
|
//题数和分数
|
|
|
answerCard.setQuestionCount(questions.size());
|
|
|
answerCard.setQuestionScore(questions.stream().mapToInt(UserExamQuestion::getQuestionScore).sum());
|