Przeglądaj źródła

报表预警/多张人脸/异常修改

wangliang 1 rok temu
rodzic
commit
a4bd8c8c94

+ 1 - 1
themis-business/src/main/java/com/qmth/themis/business/cache/ExamRecordCacheUtil.java

@@ -523,7 +523,7 @@ public class ExamRecordCacheUtil {
         }
     }
 
-    private static MonitorStatusBean getMonitorStatusBean(Long recordId, MonitorVideoSourceEnum source) {
+    public static MonitorStatusBean getMonitorStatusBean(Long recordId, MonitorVideoSourceEnum source) {
         return Objects.nonNull(redisUtil
                 .get(RedisKeyHelper.examRecordCacheKey(recordId), SystemConstant.MONITOR_STATUS_ + source.name())) ?
                 (MonitorStatusBean) redisUtil.get(RedisKeyHelper.examRecordCacheKey(recordId),

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

@@ -56,6 +56,8 @@ public class TEExamSummaryServiceImpl extends ServiceImpl<TEExamSummaryMapper, T
                 TEExamSummary teExamSummary = this.baseMapper.examSummary(examId, examActivityId, s);
                 this.examSummaryCommon(examId, examActivityId, s, teExamSummary);
             }
+            themisCacheService.updateExamSummaryCache(examId);
+            themisCacheService.updateExamSummaryCache(examId, examActivityId);
         }
     }
 
@@ -94,8 +96,6 @@ public class TEExamSummaryServiceImpl extends ServiceImpl<TEExamSummaryMapper, T
                 teExamSummaryDb.setId(id);
             }
             this.saveOrUpdate(teExamSummaryDb);
-            themisCacheService.updateExamSummaryCache(examId);
-            themisCacheService.updateExamSummaryCache(examId, examActivityId);
             themisCacheService.updateExamSummaryCache(examId, examActivityId, s);
         }
     }