|
@@ -502,20 +502,35 @@ public class TEExamController {
|
|
if (Objects.nonNull(examId) && Objects.nonNull(examActivityId) && !CollectionUtils.isEmpty(roomCodeSet)) {
|
|
if (Objects.nonNull(examId) && Objects.nonNull(examActivityId) && !CollectionUtils.isEmpty(roomCodeSet)) {
|
|
for (String s : roomCodeSet) {
|
|
for (String s : roomCodeSet) {
|
|
if (freshen) {
|
|
if (freshen) {
|
|
- teExamSummaryService.examSummary(examId, examActivityId, Objects.nonNull(s) ? new HashSet<>(Arrays.asList(s)) : null);
|
|
|
|
|
|
+ teExamSummaryService.examSummary(examId, examActivityId, Objects.nonNull(s) ? new HashSet<>(Arrays.asList(s)) : null, true);
|
|
}
|
|
}
|
|
- teExamSummaryAllList.addAll(themisCacheService.getExamSummaryCache(examId, examActivityId, s));
|
|
|
|
|
|
+ List<TEExamSummary> teExamSummaryList = themisCacheService.getExamSummaryCache(examId, examActivityId, s);
|
|
|
|
+ if (!CollectionUtils.isEmpty(teExamSummaryList)) {
|
|
|
|
+ teExamSummaryService.examSummary(examId, examActivityId, Objects.nonNull(s) ? new HashSet<>(Arrays.asList(s)) : null, true);
|
|
|
|
+ teExamSummaryList = themisCacheService.getExamSummaryCache(examId, examActivityId, s);
|
|
|
|
+ }
|
|
|
|
+ teExamSummaryAllList.addAll(teExamSummaryList);
|
|
}
|
|
}
|
|
} else if (Objects.nonNull(examId) && Objects.nonNull(examActivityId)) {
|
|
} else if (Objects.nonNull(examId) && Objects.nonNull(examActivityId)) {
|
|
if (freshen) {
|
|
if (freshen) {
|
|
- teExamSummaryService.examSummary(examId, examActivityId, null);
|
|
|
|
|
|
+ teExamSummaryService.examSummary(examId, examActivityId, null, true);
|
|
|
|
+ }
|
|
|
|
+ List<TEExamSummary> teExamSummaryList = themisCacheService.getExamSummaryCache(examId, examActivityId);
|
|
|
|
+ if (!CollectionUtils.isEmpty(teExamSummaryList)) {
|
|
|
|
+ teExamSummaryService.examSummary(examId, examActivityId, null, true);
|
|
|
|
+ teExamSummaryList = themisCacheService.getExamSummaryCache(examId, examActivityId);
|
|
}
|
|
}
|
|
- teExamSummaryAllList.addAll(themisCacheService.getExamSummaryCache(examId, examActivityId));
|
|
|
|
|
|
+ teExamSummaryAllList.addAll(teExamSummaryList);
|
|
} else {
|
|
} else {
|
|
if (freshen) {
|
|
if (freshen) {
|
|
- teExamSummaryService.examSummary(examId, null, null);
|
|
|
|
|
|
+ teExamSummaryService.examSummary(examId, null, null, true);
|
|
|
|
+ }
|
|
|
|
+ List<TEExamSummary> teExamSummaryList = themisCacheService.getExamSummaryCache(examId);
|
|
|
|
+ if (!CollectionUtils.isEmpty(teExamSummaryList)) {
|
|
|
|
+ teExamSummaryService.examSummary(examId, null, null, true);
|
|
|
|
+ teExamSummaryList = themisCacheService.getExamSummaryCache(examId);
|
|
}
|
|
}
|
|
- teExamSummaryAllList.addAll(themisCacheService.getExamSummaryCache(examId));
|
|
|
|
|
|
+ teExamSummaryAllList.addAll(teExamSummaryList);
|
|
}
|
|
}
|
|
ExamPropCountDto examPropCountDto = new ExamPropCountDto(examId, 0, 0, 0, 0, 0, BigDecimal.valueOf(0));
|
|
ExamPropCountDto examPropCountDto = new ExamPropCountDto(examId, 0, 0, 0, 0, 0, BigDecimal.valueOf(0));
|
|
if (!CollectionUtils.isEmpty(teExamSummaryAllList)) {
|
|
if (!CollectionUtils.isEmpty(teExamSummaryAllList)) {
|