|
@@ -12,6 +12,7 @@ import cn.com.qmth.examcloud.support.enums.HandInExamType;
|
|
import cn.com.qmth.examcloud.support.examing.ExamRecordData;
|
|
import cn.com.qmth.examcloud.support.examing.ExamRecordData;
|
|
import cn.com.qmth.examcloud.support.examing.ExamingActivityTime;
|
|
import cn.com.qmth.examcloud.support.examing.ExamingActivityTime;
|
|
import cn.com.qmth.examcloud.support.examing.ExamingSession;
|
|
import cn.com.qmth.examcloud.support.examing.ExamingSession;
|
|
|
|
+import cn.com.qmth.examcloud.support.examing.ExamingStatus;
|
|
import cn.com.qmth.examcloud.support.redis.RedisKeyHelper;
|
|
import cn.com.qmth.examcloud.support.redis.RedisKeyHelper;
|
|
import cn.com.qmth.examcloud.web.exception.SequenceLockException;
|
|
import cn.com.qmth.examcloud.web.exception.SequenceLockException;
|
|
import cn.com.qmth.examcloud.web.helpers.SequenceLockHelper;
|
|
import cn.com.qmth.examcloud.web.helpers.SequenceLockHelper;
|
|
@@ -121,7 +122,7 @@ public class BeforeHandInExamJobHandler {
|
|
}
|
|
}
|
|
|
|
|
|
ExamingSession examingSession = examingSessionService.getExamingSession(examRecordDataCache.getStudentId());
|
|
ExamingSession examingSession = examingSessionService.getExamingSession(examRecordDataCache.getStudentId());
|
|
- if (examingSession == null) {
|
|
|
|
|
|
+ if (examingSession == null || ExamingStatus.INFORMAL.equals(examingSession.getExamingStatus())) {
|
|
// 考试会话不存在,则自动交卷
|
|
// 考试会话不存在,则自动交卷
|
|
log.warn("redisKey {}{} value not exist, do autoHandInExam, examRecordDataId:{}",
|
|
log.warn("redisKey {}{} value not exist, do autoHandInExam, examRecordDataId:{}",
|
|
CacheConstants.CACHE_OE_SESSION, examRecordDataCache.getStudentId(), examRecordDataId);
|
|
CacheConstants.CACHE_OE_SESSION, examRecordDataCache.getStudentId(), examRecordDataId);
|