|
@@ -41,4 +41,16 @@ public class RuleDataAccountCleanJob {
|
|
|
ruleByteDanceAccountService.cleanRuleDataAccount(token.getAccountId());
|
|
|
}));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 规则引擎账户数据
|
|
|
+ * @throws Exception
|
|
|
+ */
|
|
|
+ @XxlJob("getBytedanceAccountBalanceJob")
|
|
|
+ public void getBytedanceAccountBalance() throws Exception {
|
|
|
+ List<CtopOauthToken> tokens = oauthTokenService.queryTtValidRuleAccountsToken();
|
|
|
+ tokens.forEach(token -> executorService.submit(()->{
|
|
|
+ ruleByteDanceAccountService.getBytedanceAccountBalance(token);
|
|
|
+ }));
|
|
|
+ }
|
|
|
}
|