wangliang 1 anno fa
parent
commit
29e061ad3a

+ 5 - 1
themis-business/src/main/java/com/qmth/themis/business/service/impl/TEExamSummaryServiceImpl.java

@@ -62,7 +62,11 @@ public class TEExamSummaryServiceImpl extends ServiceImpl<TEExamSummaryMapper, T
                     this.examSummaryCommon(examId, examActivityId, s, teExamSummary, freshen);
                     updateCache = true;
                 } else {
-                    themisCacheService.getExamSummaryCache(examId, examActivityId, s);
+                    if (freshen) {
+                        themisCacheService.updateExamSummaryCache(examId, examActivityId, s);
+                    } else {
+                        themisCacheService.getExamSummaryCache(examId, examActivityId, s);
+                    }
                 }
             }
             if (updateCache || freshen) {