|
@@ -865,9 +865,8 @@ public class ExamScoreServiceImpl implements ExamScoreService {
|
|
|
// 计算得分
|
|
|
String correctAnswer = curQuestion.getCorrectAnswer();
|
|
|
String studentAnswer = curQuestion.getStudentAnswer();
|
|
|
- // if (correctAnswer != null &&
|
|
|
- // QuestionOptionHelper.isEqualAnswer(correctAnswer, studentAnswer)) {
|
|
|
- if (correctAnswer != null && correctAnswer.equals(studentAnswer)) {
|
|
|
+ // if (StringUtils.isNotEmpty(studentAnswer) && QuestionOptionHelper.isEqualAnswer(correctAnswer, studentAnswer)) {
|
|
|
+ if (StringUtils.isNotEmpty(studentAnswer) && studentAnswer.equals(correctAnswer)) {
|
|
|
Double questionScore = curQuestion.getQuestionScore();
|
|
|
if (questionScore == null) {
|
|
|
log.warn("[calcExamScore] questionScore is null, examRecordDataId:{} questionId:{}",
|