jiequan.bi vor 4 Jahren
Ursprung
Commit
55fb153905
1 geänderte Dateien mit 14 neuen und 16 gelöschten Zeilen
  1. 14 16
      jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

+ 14 - 16
jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

@@ -350,14 +350,6 @@ public class SampleTest {
     }
 
     @Autowired
-    IRuleKuaiShouPlanService kuaiShouPlanService;
-
-    @Test
-    public void kuaishouRuleData() {
-        kuaiShouPlanService.cleanRuleDataUnit(3429620L, "2020-12-07", "2020-12-07", 1);
-    }
-
-    @Autowired
     private IKuaiShouCommentService kuaiShouCommentService;
 
     @Test
@@ -385,14 +377,6 @@ public class SampleTest {
     }
 
     @Autowired
-    private IRuleKuaiShouPlanService ruleKuaiShouPlanService;
-
-    @Test
-    public void execute() {
-        CtopOauthToken token = tokenService.getTokenByAccountId(9589905L);
-        ruleKuaiShouPlanService.cleanRuleDataTarget(token.getAccountId(), 1);
-    }
-    @Autowired
     private IKuaishouVideoEtlInfoService kuaishouVideoEtlInfoService;
     @Test
     public void etlKuaishouData(){
@@ -434,4 +418,18 @@ public class SampleTest {
         kuaishouInterfaceService.getAdvertiserCreativeReportDaily(token, new Date(), new Date(), null, null);
     }
 
+    @Autowired
+    IRuleByteDanceAccountService ruleByteDanceAccountService;
+
+    @Autowired
+    IRuleKuaiShouPlanService ruleKuaiShouPlanService;
+
+    @Test
+    public void cleanRuleDataAccount(){
+        List<CtopOauthToken> tokens = oauthTokenService.selectKuaiShouToken();
+        for(CtopOauthToken oauthToken:tokens){
+            ruleKuaiShouPlanService.cleanRuleDataTarget(oauthToken.getAccountId(),1);
+        }
+    }
+
 }