|
@@ -288,7 +288,15 @@ public class ExportExamStudentScore {
|
|
} else {
|
|
} else {
|
|
curDynamicColumnValues.add(this.convertChar(question.getStudentAnswer()));
|
|
curDynamicColumnValues.add(this.convertChar(question.getStudentAnswer()));
|
|
}
|
|
}
|
|
- curDynamicColumnValues.add(question.getStudentScore() != null ? question.getStudentScore().toString() : "0");
|
|
|
|
|
|
+
|
|
|
|
+ // 注:客观题得分,目前只能通过比较作答答案是否一致来确定得分
|
|
|
|
+ String correctAnswer = question.getCorrectAnswer() != null ? question.getCorrectAnswer() : "";
|
|
|
|
+ String studentAnswer = question.getStudentAnswer() != null ? question.getStudentAnswer() : "";
|
|
|
|
+ if (correctAnswer.equals(studentAnswer)) {
|
|
|
|
+ curDynamicColumnValues.add(question.getQuestionScore() != null ? question.getQuestionScore().toString() : "0");
|
|
|
|
+ } else {
|
|
|
|
+ curDynamicColumnValues.add("0");
|
|
|
|
+ }
|
|
} else {
|
|
} else {
|
|
curDynamicColumnValues.add(question.getStudentScore() != null ? question.getStudentScore().toString() : "0");
|
|
curDynamicColumnValues.add(question.getStudentScore() != null ? question.getStudentScore().toString() : "0");
|
|
}
|
|
}
|