wangliang %!s(int64=4) %!d(string=hai) anos
pai
achega
2dae04b716

+ 10 - 10
themis-mq/src/main/java/com/qmth/themis/mq/service/impl/MqLogicServiceImpl.java

@@ -811,16 +811,16 @@ public class MqLogicServiceImpl implements MqLogicService {
         Long recordId = Long.parseLong(mqDto.getObjId());
 
         //先查询之前的断点记录
-        QueryWrapper<TOeExamBreakHistory> tOeExamBreakHistoryQueryWrapper = new QueryWrapper<>();
-        tOeExamBreakHistoryQueryWrapper.lambda().eq(TOeExamBreakHistory::getExamRecordId, recordId);
-        List<TOeExamBreakHistory> tOeExamBreakHistoryList = tOeExamBreakHistoryService
-                .list(tOeExamBreakHistoryQueryWrapper);
-        //删除历史断点缓存
-        if (Objects.nonNull(tOeExamBreakHistoryList) && tOeExamBreakHistoryList.size() > 0) {
-            tOeExamBreakHistoryList.forEach(s -> {
-                redisUtil.delete(RedisKeyHelper.examBreakCacheKey(s.getId()));
-            });
-        }
+//        QueryWrapper<TOeExamBreakHistory> tOeExamBreakHistoryQueryWrapper = new QueryWrapper<>();
+//        tOeExamBreakHistoryQueryWrapper.lambda().eq(TOeExamBreakHistory::getExamRecordId, recordId);
+//        List<TOeExamBreakHistory> tOeExamBreakHistoryList = tOeExamBreakHistoryService
+//                .list(tOeExamBreakHistoryQueryWrapper);
+//        //删除历史断点缓存
+//        if (Objects.nonNull(tOeExamBreakHistoryList) && tOeExamBreakHistoryList.size() > 0) {
+//            tOeExamBreakHistoryList.forEach(s -> {
+//                redisUtil.delete(RedisKeyHelper.examBreakCacheKey(s.getId()));
+//            });
+//        }
         //增加断点记录
         TOeExamBreakHistory tOeExamBreakHistory = new TOeExamBreakHistory(ExamRecordCacheUtil.getLastBreakId(recordId),
                 recordId, System.currentTimeMillis(), exceptionEnum, exceptionEnum.name());