deason 2 жил өмнө
parent
commit
34b6fb71e3

+ 2 - 2
examcloud-core-oe-student-service/src/main/java/cn/com/qmth/examcloud/core/oe/student/service/impl/ExamRecordDataServiceImpl.java

@@ -394,11 +394,11 @@ public class ExamRecordDataServiceImpl implements ExamRecordDataService {
                 String correctAnswer = examQuestion.getCorrectAnswer();
                 String studentAnswer = examQuestion.getStudentAnswer();
 
-                /*if (StringUtils.isEmpty(correctAnswer)) {
+                if (StringUtils.isEmpty(correctAnswer)) {
                     // 如果客观题的标准答案为空,则更新标准答案
                     this.updateCorrectAnswer(req.getExamRecordDataId(), examQuestions, examQuestion);
                     correctAnswer = examQuestion.getCorrectAnswer();
-                }*/
+                }
 
                 // 如果学生作答正确,则客观分累加,答题数累加
                 // if (StringUtils.isNotEmpty(studentAnswer) && QuestionOptionHelper.isEqualAnswer(correctAnswer, studentAnswer)) {