|
@@ -694,14 +694,19 @@ public class ImportPaperService {
|
|
|
question.setSubQuestions(subQuesList);
|
|
|
// 计算套题总分
|
|
|
double totalScore = 0;
|
|
|
+ List<Double> scoreList = new ArrayList<>();
|
|
|
for (Question child : subQuesList) {
|
|
|
Double score = child.getScore();
|
|
|
if (score != null) {
|
|
|
totalScore += score;
|
|
|
+ scoreList.add(score);
|
|
|
+ } else {
|
|
|
+ scoreList.add(0d);
|
|
|
}
|
|
|
}
|
|
|
question.setScore(totalScore);
|
|
|
paperDetailUnit.setScore(totalScore);
|
|
|
+ paperDetailUnit.updateSubScore(scoreList);
|
|
|
}
|
|
|
|
|
|
/**
|