|
|
@@ -52,11 +52,11 @@ public class AdAutoTask {
|
|
|
@SchedulerLock(name = "ad-auto-delete-task", lockAtMostFor = "9m", lockAtLeastFor = "2m")
|
|
|
public void adAutoDeleteTask() {
|
|
|
log.info("AdAutoDeleteTask execute");
|
|
|
- // 3天前
|
|
|
- LocalDateTime threeDaysAgo = LocalDateTime.now().minusDays(3);
|
|
|
+ // 8天前
|
|
|
+ LocalDateTime eightDaysAgo = LocalDateTime.now().minusDays(8);
|
|
|
List<AdPlanConf> confList =
|
|
|
adPlanConfService.lambdaQuery()
|
|
|
- .lt(AdPlanConf::getCreateTime, threeDaysAgo)
|
|
|
+ .lt(AdPlanConf::getCreateTime, eightDaysAgo)
|
|
|
.orderByDesc(AdPlanConf::getId)
|
|
|
.list();
|
|
|
|