|
@@ -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() {
|