Parcourir la source

1、调整流量删除时间

yys il y a 1 semaine
Parent
commit
f5f510c271

+ 1 - 1
fs-service/src/main/java/com/fs/course/service/impl/FsCourseTrafficLogServiceImpl.java

@@ -527,7 +527,7 @@ public class FsCourseTrafficLogServiceImpl implements IFsCourseTrafficLogService
     @Override
     public void batchDelTraffic() {
         // 设置删除的时间条件:两个月之前(当月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());
 
         int batchSize = 5000; // 每批次处理数量