فهرست منبع

调整备份数据

yfh 2 هفته پیش
والد
کامیت
ba696a0212

+ 7 - 7
fs-service/src/main/java/com/fs/course/service/impl/FsCourseAnswerLogsServiceImpl.java

@@ -209,10 +209,10 @@ public class FsCourseAnswerLogsServiceImpl implements IFsCourseAnswerLogsService
         log.info("开始执行数据迁移任务");
 
         // 检查是否在凌晨3点之后
-//        if (shouldStopAt3AM()) {
-//            log.info("已到凌晨3点,停止数据迁移任务");
-//            return;
-//        }
+        if (shouldStopAt3AM()) {
+            log.info("已到凌晨3点,停止数据迁移任务");
+            return;
+        }
 
         // 设置查询条件:获取12月之前的数据
         FsCourseAnswerLogs queryLog = createQueryCondition();
@@ -226,10 +226,10 @@ public class FsCourseAnswerLogsServiceImpl implements IFsCourseAnswerLogsService
         try {
             while (hasMoreData) {
                 // 检查是否到凌晨3点
-               /* if (shouldStopAt3AM()) {
+                if (shouldStopAt3AM()) {
                     log.info("已到凌晨3点,停止数据迁移任务,已处理{}条数据", totalProcessed);
                     break;
-                }*/
+                }
 
                 log.info("开始查询第{}批数据,查询条件:beginTime={}, endTime={}",
                         pageNum, queryLog.getBeginTime(), queryLog.getEndTime());
@@ -346,7 +346,7 @@ public class FsCourseAnswerLogsServiceImpl implements IFsCourseAnswerLogsService
         int minute = calendar.get(Calendar.MINUTE);
 
         // 凌晨3点及之后返回true
-        return hour >= 3;
+        return hour >= 4;
     }
 
     /**

+ 5 - 5
fs-service/src/main/java/com/fs/course/service/impl/FsCourseRedPacketLogServiceImpl.java

@@ -562,11 +562,11 @@ public class FsCourseRedPacketLogServiceImpl implements IFsCourseRedPacketLogSer
     public void backupRedPacketLog() {
         log.info("开始执行数据迁移任务");
 
-       /* // 检查是否在凌晨3点之后
+        // 检查是否在凌晨3点之后
         if (shouldStopAt3AM()) {
             log.info("已到凌晨3点,停止数据迁移任务");
             return;
-        }*/
+        }
 
         // 设置查询条件:获取12月之前的数据
         FsCourseRedPacketLog queryLog = createQueryCondition();
@@ -580,10 +580,10 @@ public class FsCourseRedPacketLogServiceImpl implements IFsCourseRedPacketLogSer
         try {
             while (hasMoreData) {
                 // 检查是否到凌晨3点
-              /*  if (shouldStopAt3AM()) {
+                if (shouldStopAt3AM()) {
                     log.info("已到凌晨3点,停止数据迁移任务,已处理{}条数据", totalProcessed);
                     break;
-                }*/
+                }
 
                 log.info("开始查询第{}批数据,查询条件:beginTime={}, endTime={}",
                         pageNum, queryLog.getBeginTime(), queryLog.getEndTime());
@@ -700,7 +700,7 @@ public class FsCourseRedPacketLogServiceImpl implements IFsCourseRedPacketLogSer
         int minute = calendar.get(Calendar.MINUTE);
 
         // 凌晨3点及之后返回true
-        return hour >= 3;
+        return hour >= 4;
     }
 
     /**

+ 5 - 5
fs-service/src/main/java/com/fs/course/service/impl/FsCourseWatchLogServiceImpl.java

@@ -1466,10 +1466,10 @@ public class FsCourseWatchLogServiceImpl extends ServiceImpl<FsCourseWatchLogMap
         log.info("开始执行数据迁移任务");
 
         // 检查是否在凌晨3点之后
-/*        if (shouldStopAt3AM()) {
+        if (shouldStopAt3AM()) {
             log.info("已到凌晨3点,停止数据迁移任务");
             return;
-        }*/
+        }
 
         // 设置查询条件:获取12月之前的数据
         FsCourseWatchLog queryLog = createQueryCondition();
@@ -1483,10 +1483,10 @@ public class FsCourseWatchLogServiceImpl extends ServiceImpl<FsCourseWatchLogMap
         try {
             while (hasMoreData) {
                 // 检查是否到凌晨3点
-               /* if (shouldStopAt3AM()) {
+                if (shouldStopAt3AM()) {
                     log.info("已到凌晨3点,停止数据迁移任务,已处理{}条数据", totalProcessed);
                     break;
-                }*/
+                }
 
                 log.info("开始查询第{}批数据,查询条件:beginTime={}, endTime={}",
                         pageNum, queryLog.getBeginTime(), queryLog.getEndTime());
@@ -1603,7 +1603,7 @@ public class FsCourseWatchLogServiceImpl extends ServiceImpl<FsCourseWatchLogMap
         int minute = calendar.get(Calendar.MINUTE);
 
         // 凌晨3点及之后返回true
-        return hour >= 3;
+        return hour >= 4;
     }
 
     /**

+ 0 - 4
fs-user-app/src/main/java/com/fs/app/controller/store/WxUserScrmController.java

@@ -275,10 +275,6 @@ public class WxUserScrmController extends AppBaseController {
             return R.error("code不存在");
         }
         String courseMa_appId;
-
-        System.out.println("appid"+param.getCode());
-        logger.info("appid"+param.getCode());
-        logger.info("appid"+param.getAppId());
         if(StringUtils.isNotEmpty(param.getAppId())){
             try {
                 courseMa_appId = configUtil.generateConfigMiniByKey(SysConfigEnum.COURSE_MA_CONFIG.getKey(),param.getAppId()).getString("appid");