|
|
@@ -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;
|
|
|
}
|
|
|
|
|
|
/**
|