Sfoglia il codice sorgente

快手爆款视频数据清洗

syh 4 anni fa
parent
commit
98859fa77a

+ 8 - 2
jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

@@ -392,11 +392,17 @@ public class SampleTest {
     private IKuaishouVideoEtlInfoService etlInfoService;
     @Test
     public void etlKuaishouData(){
-        String dateString = "2020-03-17";
+        String dateString = "2020-03-30";
         Date startDate = DateUtils.parseDate(dateString,"yyyy-MM-dd");
-        for(int i=0;i<=290;i++){
+        for(int i=0;i<=277;i++){
             Date getDate = DateUtils.addDay(startDate,i);
             etlInfoService.etlKuaishouVideoInfo(getDate);
         }
     }
+
+    @Test
+    public void loadBytedanceVideo(){
+        CtopOauthToken token = tokenService.getTokenByAccountId(1685024266033160L);
+        advertiserDataService.getMaterialList(token);
+    }
 }

+ 0 - 1
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/report/service/impl/KuaishouVideoEtlInfoServiceImpl.java

@@ -57,7 +57,6 @@ public class KuaishouVideoEtlInfoServiceImpl extends ServiceImpl<KuaishouVideoEt
                         String signature = material.getSignature();
                         KuaishouVideoEtlInfo etlInfo = this.getBySignature(signature);
                         KuaiShouReportDailyMaterial nowData = dailyMaterialService.getEtlDataByParams(signature,date);
-                        System.out.println("code:"+signature+";nowDataCode:"+nowData.getSignature());
                         String minDate = nowData.getStatDate();
                         Integer days = DateUtils.getdaysOfTwoDate(minDate,date);
                         if(null == etlInfo){