wangliang 2 vuotta sitten
vanhempi
commit
539e985ea3

+ 0 - 5
themis-business/src/main/java/com/qmth/themis/business/service/impl/CommonServiceImpl.java

@@ -91,11 +91,6 @@ public class CommonServiceImpl implements CommonService {
                 mqDtoService.assembleSendAsyncDelayMsg(mqDto);
                 return;
             }
-
-            Long timestamp = System.currentTimeMillis();
-            ExamRecordCacheUtil.setStatus(recordId, ExamRecordStatusEnum.PERSISTED, timestamp);
-            ExamRecordCacheUtil.setUpdateTime(recordId, timestamp);
-
             log.info("start persisted,recordId:" + recordId);
             examRecordService.saveDataByCache(recordId);
             this.deleteExamStudentCache(recordId, studentId);

+ 4 - 0
themis-business/src/main/java/com/qmth/themis/business/service/impl/TOeExamRecordServiceImpl.java

@@ -377,6 +377,10 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
             ExamStudentPaperStructCacheBean struct = (ExamStudentPaperStructCacheBean) redisUtil
                     .get(RedisKeyHelper.studentPaperStructKey(recordId));
 
+            Long timestamp = System.currentTimeMillis();
+            ExamRecordCacheUtil.setStatus(recordId, ExamRecordStatusEnum.PERSISTED, timestamp);
+            ExamRecordCacheUtil.setUpdateTime(recordId, timestamp);
+
             //保存考试记录
             TOeExamRecord er = this.getCacheExamRecord(recordId);
             if (Objects.isNull(er)) {