|
@@ -107,6 +107,12 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
|
|
// @Resource
|
|
// @Resource
|
|
// TOeExamRecordService tOeExamRecordService;
|
|
// TOeExamRecordService tOeExamRecordService;
|
|
|
|
|
|
|
|
+ @Resource
|
|
|
|
+ TEOrgSummaryService teOrgSummaryService;
|
|
|
|
+
|
|
|
|
+ @Resource
|
|
|
|
+ ThemisCacheService themisCacheService;
|
|
|
|
+
|
|
@Transactional
|
|
@Transactional
|
|
@Override
|
|
@Override
|
|
public Long saveByPrepare(Long examId, Long examActivityId, Long examStudentId, Long paperId,
|
|
public Long saveByPrepare(Long examId, Long examActivityId, Long examStudentId, Long paperId,
|
|
@@ -416,6 +422,15 @@ public class TOeExamRecordServiceImpl extends ServiceImpl<TOeExamRecordMapper, T
|
|
}
|
|
}
|
|
//更新考生信息
|
|
//更新考生信息
|
|
teExamStudentService.updateExamStudentByCache(er.getExamStudentId());
|
|
teExamStudentService.updateExamStudentByCache(er.getExamStudentId());
|
|
|
|
+ ExamStudentCacheBean examStudentCache = (ExamStudentCacheBean) redisUtil.get(RedisKeyHelper.examStudentCacheKey(er.getExamStudentId()));
|
|
|
|
+ if (Objects.nonNull(examStudentCache.getAlreadyExamCount()) &&
|
|
|
|
+ examStudentCache.getAlreadyExamCount().longValue() == 1) {
|
|
|
|
+ teOrgSummaryService.updateOrgZeroSummary(1);
|
|
|
|
+ } else {
|
|
|
|
+ teOrgSummaryService.updateOrgZeroSummary(0);
|
|
|
|
+ }
|
|
|
|
+ themisCacheService.updateOrgSummaryCache(0L);
|
|
|
|
+
|
|
//上传个人试卷结构
|
|
//上传个人试卷结构
|
|
if (Objects.nonNull(struct)) {
|
|
if (Objects.nonNull(struct)) {
|
|
ossUtil.upload(false, structFilePath, struct.getContent());
|
|
ossUtil.upload(false, structFilePath, struct.getContent());
|