|
@@ -193,6 +193,12 @@ public class ExamRecordQuestionsServiceImpl implements ExamRecordQuestionsServic
|
|
|
|
|
|
// 试卷题目数量
|
|
|
Integer quesCount = examRecordDataCache.getQuestionCount();
|
|
|
+ if (quesCount == null || quesCount == 0) {
|
|
|
+ // 先排查具体原因,若为无效脏数据,则将表“ec_oes_exam_record_data”的“exam_record_status”值改为“EXAM_ERROR”即可
|
|
|
+ log.warn("考试记录信息有误! examRecordDataId:{} questionCount:{}", examRecordDataId, quesCount);
|
|
|
+ throw new StatusException("1002", "考试记录信息有误!" + examRecordDataId);
|
|
|
+ }
|
|
|
+
|
|
|
for (int i = 1; i <= quesCount; i++) {
|
|
|
ExamQuestion questionCache = this.getExamQuestion(examRecordDataId, i);
|
|
|
if (questionCache == null) {
|