|
|
@@ -8,7 +8,6 @@ import java.util.concurrent.Executors;
|
|
|
import java.util.concurrent.Semaphore;
|
|
|
|
|
|
import org.springframework.scheduling.annotation.Scheduled;
|
|
|
-import org.springframework.stereotype.Component;
|
|
|
|
|
|
import com.moka.gdtauto.entity.AdAutoConf;
|
|
|
import com.moka.gdtauto.entity.AdPlanConf;
|
|
|
@@ -21,7 +20,7 @@ import lombok.AllArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import net.javacrumbs.shedlock.spring.annotation.SchedulerLock;
|
|
|
|
|
|
-@Component
|
|
|
+//@Component
|
|
|
@AllArgsConstructor
|
|
|
@Slf4j
|
|
|
public class AdAutoTask {
|
|
|
@@ -56,6 +55,7 @@ public class AdAutoTask {
|
|
|
LocalDateTime beginTime = LocalDateTime.now().minusDays(10);
|
|
|
List<AdPlanConf> confList =
|
|
|
adPlanConfService.lambdaQuery()
|
|
|
+ //.ge(AdPlanConf::getId, 57L)
|
|
|
.lt(AdPlanConf::getCreateTime, beginTime)
|
|
|
.orderByDesc(AdPlanConf::getId)
|
|
|
.list();
|