Pārlūkot izejas kodu

discipline cache key

deason 3 gadi atpakaļ
vecāks
revīzija
ce68e629e2

+ 2 - 1
examcloud-core-oe-admin-api-provider/src/main/java/cn/com/qmth/examcloud/core/oe/admin/api/provider/SyncExamDataCloudServiceProvider.java

@@ -12,6 +12,7 @@ import cn.com.qmth.examcloud.core.oe.admin.dao.enums.*;
 import cn.com.qmth.examcloud.core.oe.admin.service.*;
 import cn.com.qmth.examcloud.core.oe.admin.service.cache.ExamStudentCache;
 import cn.com.qmth.examcloud.question.commons.core.question.AnswerType;
+import cn.com.qmth.examcloud.support.Constants;
 import cn.com.qmth.examcloud.support.cache.CacheHelper;
 import cn.com.qmth.examcloud.support.cache.bean.CourseCacheBean;
 import cn.com.qmth.examcloud.support.cache.bean.ExamSettingsCacheBean;
@@ -152,7 +153,7 @@ public class SyncExamDataCloudServiceProvider extends ControllerSupport implemen
         Long realExamRecordDataId = syncExamRecordData(transitionExamRecordData);
 
         //header校验错误
-        Boolean hasWarn = redisClient.get("OE_SESSION_WARN_" + transitionExamRecordDataId, Boolean.class);
+        Boolean hasWarn = redisClient.get(Constants.OE_DISCIPLINE_ILLEGAL_DATA + transitionExamRecordDataId, Boolean.class);
         if (hasWarn != null && hasWarn) {
             examAuditService.saveHeaderWarnAudit(realExamRecordDataId);
         }