소스 검색

煜一人群报表数据拉取接口,线程上调

zhaoxian 4 년 전
부모
커밋
9554c760c1
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/TestController.java

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

@@ -1475,7 +1475,7 @@ public class TestController {
     private IKuaiShouGroupService kuaiShouGroupService;
     @Autowired
     private IKuaishouStrategyService kuaishouStrategyService;
-
+    static ExecutorService executorServic1e = Executors.newFixedThreadPool(5);
     /**
      * 勿动勿删,煜一人群报表数据拉取接口。
      *
@@ -1502,7 +1502,6 @@ public class TestController {
         } else {
             dayList = DateUtils.getDays(startTime, endTime);
         }
-        ExecutorService executorServic1e = Executors.newFixedThreadPool(8);
         int page = 1;
         int pageSize = 2000;
         dayList.forEach(date -> executorServic1e.submit(() -> {