|
@@ -7,6 +7,7 @@
|
|
|
|
|
|
package cn.com.qmth.examcloud.core.oe.admin.service.impl;
|
|
|
|
|
|
+import cn.com.qmth.examcloud.api.commons.enums.ExamType;
|
|
|
import cn.com.qmth.examcloud.commons.exception.StatusException;
|
|
|
import cn.com.qmth.examcloud.commons.util.DateUtil;
|
|
|
import cn.com.qmth.examcloud.core.oe.admin.base.jpa.SpecUtils;
|
|
@@ -739,6 +740,11 @@ public class ExamScoreServiceImpl implements ExamScoreService {
|
|
|
boolean needUpdateFinalScore = false;
|
|
|
|
|
|
for (ExamRecordDataEntity examRecordData : examRecordDataList) {
|
|
|
+ if (ExamType.OFFLINE == examRecordData.getExamType()) {
|
|
|
+ // 离线考试,examRecordQuestions实际为空
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
ExamRecordQuestionsEntity examRecordQuestion = examRecordQuestionsService.getExamRecordQuestionsAndFixExamRecordDataIfNecessary(examRecordData);
|
|
|
if (examRecordQuestion == null) {
|
|
|
log.warn("updateCorrectAnswerAndReFixScore examRecordQuestions is null, examRecordDataId = {}", examRecordData.getId());
|