|
@@ -680,6 +680,16 @@ public class ImportPaperService {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
question.setSubQuestions(subQuesList);
|
|
question.setSubQuestions(subQuesList);
|
|
|
|
+ //计算套题总分
|
|
|
|
+ double totalScore = 0;
|
|
|
|
+ for (Question child : subQuesList) {
|
|
|
|
+ Double score = child.getScore();
|
|
|
|
+ if (score != null) {
|
|
|
|
+ totalScore += score;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ question.setScore(totalScore);
|
|
|
|
+ paperDetailUnit.setScore(totalScore);
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|