ソースを参照

快手爆款视频数据清洗

syh 4 年 前
コミット
cc57bdbfa9

+ 5 - 3
jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

@@ -392,7 +392,7 @@ public class SampleTest {
     private IKuaishouVideoEtlInfoService etlInfoService;
     @Test
     public void etlKuaishouData(){
-        String dateString = "2020-03-30";
+        String dateString = "2020-05-25";
         Date startDate = DateUtils.parseDate(dateString,"yyyy-MM-dd");
         for(int i=0;i<=277;i++){
             Date getDate = DateUtils.addDay(startDate,i);
@@ -402,7 +402,9 @@ public class SampleTest {
 
     @Test
     public void loadBytedanceVideo(){
-        CtopOauthToken token = tokenService.getTokenByAccountId(1685024266033160L);
-        advertiserDataService.getMaterialList(token);
+        CtopOauthToken token = tokenService.getTokenByAccountId(1673731601820686L);
+        for(int i=15;i<60;i++){
+            reportService.getAdvertiserReport(token,DateUtils.addDay(new Date(),-i),DateUtils.addDay(new Date(),-i),CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY);
+        }
     }
 }