Преглед изворни кода

快手操作记录获取接口

sunzhen пре 4 година
родитељ
комит
4daa9e39d3

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

@@ -890,17 +890,17 @@ public class TestController {
                     return result;
                 }
 
-                //executorService = Executors.newFixedThreadPool(3);
+                executorService = Executors.newFixedThreadPool(3);
                 tokens.forEach(token -> {
-                    //    executorService.submit(new Runnable() {
-                    //        @Override
-                    //        public void run() {
-                    log.info("获取操作记录开始:accountId:{},startDate:{},endDate:{}", token.getAccountId(), startDate, endDate);
-                    kuaishouInterfaceService2.getOperationRecord(token.getAccountId(), token.getAccessToken(), operationTarget, startDate, endDate);
-                    log.info("获取操作记录开始:accountId:{}", token.getAccountId());
-                    // }
+                    executorService.submit(new Runnable() {
+                        @Override
+                        public void run() {
+                            log.info("获取操作记录开始:accountId:{},startDate:{},endDate:{}", token.getAccountId(), startDate, endDate);
+                            kuaishouInterfaceService2.getOperationRecord(token.getAccountId(), token.getAccessToken(), operationTarget, startDate, endDate);
+                            log.info("获取操作记录开始:accountId:{}", token.getAccountId());
+                     }
+                    });
                 });
-                //});
             }else{
                 QueryWrapper<CtopOauthToken> queryWrapper = new QueryWrapper<>();
                 queryWrapper.eq("account_id", accountId);