|
@@ -527,7 +527,7 @@ public class FsCourseTrafficLogServiceImpl implements IFsCourseTrafficLogService
|
|
|
@Override
|
|
@Override
|
|
|
public void batchDelTraffic() {
|
|
public void batchDelTraffic() {
|
|
|
// 设置删除的时间条件:两个月之前(当月1日0点)
|
|
// 设置删除的时间条件:两个月之前(当月1日0点)
|
|
|
- LocalDate targetLocalDate = LocalDate.now().minusMonths(2).withDayOfMonth(1);
|
|
|
|
|
|
|
+ LocalDate targetLocalDate = LocalDate.now().minusMonths(1).withDayOfMonth(1);
|
|
|
Date targetDate = Date.from(targetLocalDate.atStartOfDay(ZoneId.systemDefault()).toInstant());
|
|
Date targetDate = Date.from(targetLocalDate.atStartOfDay(ZoneId.systemDefault()).toInstant());
|
|
|
|
|
|
|
|
int batchSize = 5000; // 每批次处理数量
|
|
int batchSize = 5000; // 每批次处理数量
|