فهرست منبع

定时任务修改

yumeng 5 سال پیش
والد
کامیت
6d6a73c5da

+ 2 - 1
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/job/BytedanceDailyPlanReportLoadJob.java

@@ -14,6 +14,7 @@ import org.springframework.beans.factory.annotation.Autowired;
 import java.util.Date;
 import java.util.List;
 import java.util.concurrent.ExecutorService;
+import java.util.concurrent.Executors;
 
 /**
  * 头条计划层级数据
@@ -36,8 +37,8 @@ public class BytedanceDailyPlanReportLoadJob implements Job {
             log.info("定时获取头条数据异常:为获取到可用的token");
             return;
         }
+        executorService = Executors.newFixedThreadPool(3);
         tokens.forEach(token -> {
-
             executorService.submit(new Runnable() {
                 @Override
                 public void run() {