|
@@ -26,6 +26,7 @@ public class KuaishouDailyAccountReportLoadJob {
|
|
|
@Autowired
|
|
|
private IKuaishouInterfaceService kuaishouInterfaceService;
|
|
|
static ExecutorService executorService = Executors.newFixedThreadPool(3);
|
|
|
+ static ExecutorService currentExecutorService = Executors.newFixedThreadPool(5);
|
|
|
|
|
|
@XxlJob("kuaishouDailyAccountReport")
|
|
|
public void execute() throws Exception {
|
|
@@ -53,7 +54,7 @@ public class KuaishouDailyAccountReportLoadJob {
|
|
|
XxlJobHelper.handleFail();
|
|
|
return;
|
|
|
}
|
|
|
- tokens.forEach(token -> executorService.submit(() -> {
|
|
|
+ tokens.forEach(token -> currentExecutorService.submit(() -> {
|
|
|
kuaishouInterfaceService.getAdvertiserReportDaily(token, getDate, getDate, null);
|
|
|
}));
|
|
|
}
|