deason 3 lat temu
rodzic
commit
f389d3cda2

+ 4 - 3
src/main/java/cn/com/qmth/dp/examcloud/oe/modules/exam_record_data/ExamRecordDataTool.java

@@ -42,7 +42,7 @@ public class ExamRecordDataTool {
                 .append(" inner join ec_b_org org on org.id = t.root_org_id")
                 .append(" where 1=1")
                 .append(" and t.creation_time >= '2022-05-08 00:00:00'")
-                .append(" and t.creation_time <= '2022-05-08 20:00:00'")
+                .append(" and t.creation_time <= '2022-05-08 23:59:59'")
                 .append(" and t.sync_status = 'UNSYNC'")
                 // .append(" order by t.root_org_id,t.exam_id")
                 // .append(" limit 10")
@@ -58,10 +58,11 @@ public class ExamRecordDataTool {
             // String examingSessionKey = String.format("OE_SESSION:%s", vo.getStudentId());
             // if (redisTemplate.hasKey(examingSessionKey)) {
             //     // 若此缓存存在,则登录后会进入断点,需要排除清理!
-            //     System.out.println("考试会话缓存仍存在! key = " + examingSessionKey);
+            //     System.out.println(i + " 考试会话缓存仍存在! key = " + examingSessionKey);
+            //     redisClient.delete(examingSessionKey);
             //     errList.add(vo);
             // }
-            // if (true) return;
+            // if (true) continue;
 
             String examRecordDataKey = String.format("OE_ERD:%s", vo.getId());
             String studentPaperKey = String.format("OE_PAPER:%s", vo.getId());