|
@@ -565,6 +565,14 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
throw new BusinessException(ExceptionResultEnum.EXAM_STATUS_UPDATE_ERROR);
|
|
throw new BusinessException(ExceptionResultEnum.EXAM_STATUS_UPDATE_ERROR);
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if (!ExamRecordStatusEnum.RESUME_PREPARE.equals(sta)) {//非断点进入的
|
|
|
|
+ // 写入次数
|
|
|
|
+ es.setAlreadyExamCount(es.getAlreadyExamCount() + 1);
|
|
|
|
+ // 更新考生缓存
|
|
|
|
+ redisUtil.set(RedisKeyHelper.examStudentCacheKey(examStudentId), es);
|
|
|
|
+ updateExamStudent(examStudentId, es.getAlreadyExamCount(), recordId);
|
|
|
|
+ }
|
|
|
|
+
|
|
//非强制交卷,换算最终交卷时间并生成一次性延时任务
|
|
//非强制交卷,换算最终交卷时间并生成一次性延时任务
|
|
if (Objects.nonNull(exam.getForceFinish()) && exam.getForceFinish().intValue() == 0) {
|
|
if (Objects.nonNull(exam.getForceFinish()) && exam.getForceFinish().intValue() == 0) {
|
|
Long date = ExamRecordCacheUtil.getExamFinalFinishTime(recordId);
|
|
Long date = ExamRecordCacheUtil.getExamFinalFinishTime(recordId);
|