|
@@ -19,6 +19,7 @@ import com.qmth.themis.business.enums.FinishTypeEnum;
|
|
|
import com.qmth.themis.business.service.*;
|
|
|
import com.qmth.themis.business.util.OssUtil;
|
|
|
import com.qmth.themis.business.util.RedisUtil;
|
|
|
+import com.qmth.themis.business.util.ServletUtil;
|
|
|
import com.qmth.themis.common.exception.BusinessException;
|
|
|
import org.apache.commons.codec.digest.DigestUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
@@ -223,7 +224,7 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
|
//更新场次-考试记录缓存
|
|
|
ExamActivityRecordCacheUtil.setExamRecordStatus(activityId, recordId, ExamRecordCacheUtil.getStatus(recordId));
|
|
|
teStudentCacheDto.setUnFinishedRecordId(recordId);
|
|
|
- redisUtil.setStudent(studentId, teStudentCacheDto, null, null);
|
|
|
+ redisUtil.setStudent(studentId, teStudentCacheDto);
|
|
|
return prepare;
|
|
|
}
|
|
|
|
|
@@ -579,9 +580,9 @@ public class TEExamServiceImpl extends ServiceImpl<TEExamMapper, TEExam> impleme
|
|
|
//更新场次-考试记录缓存
|
|
|
ExamActivityRecordCacheUtil.setExamRecordStatus(es.getExamActivityId(), recordId, ExamRecordCacheUtil.getStatus(recordId));
|
|
|
//更新未完成考试记录id
|
|
|
- TEStudentCacheDto teStudentCacheDto = (TEStudentCacheDto) redisUtil.getStudent(es.getStudentId());
|
|
|
+ TEStudentCacheDto teStudentCacheDto = (TEStudentCacheDto) ServletUtil.getRequestStudentAccount();
|
|
|
teStudentCacheDto.setUnFinishedRecordId(null);
|
|
|
- redisUtil.setStudent(studentId, teStudentCacheDto, null, null);
|
|
|
+ redisUtil.setStudent(teStudentCacheDto.getId(), teStudentCacheDto);
|
|
|
return ret;
|
|
|
}
|
|
|
|