瀏覽代碼

删除数据清洗逻辑

songyinghao 5 年之前
父節點
當前提交
85d12483fd

+ 11 - 11
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/job/KuaishouHourlyReportLoadJob.java

@@ -39,17 +39,17 @@ public class KuaishouHourlyReportLoadJob implements Job {
             log.info("定时获取头条数据异常:为获取到可用的token");
             return;
         }
-        tokens.forEach(token -> {
-            //1:获取全量广告计划数据
-            kuaishouInterfaceService.getCampaignList(token);
-            //1:获取全量广告组数据
-            kuaishouInterfaceService.getGroupList(token);
-            //1:获取全量创意数据
-            kuaishouInterfaceService.getCreativeList(token);
-            //2:获取全量视频素材数据
-            kuaishouInterfaceService.getVideoList(token);
-        });
-        log.info("物料数据同步完成");
+//        tokens.forEach(token -> {
+//            //1:获取全量广告计划数据
+//            kuaishouInterfaceService.getCampaignList(token);
+//            //1:获取全量广告组数据
+//            kuaishouInterfaceService.getGroupList(token);
+//            //1:获取全量创意数据
+//            kuaishouInterfaceService.getCreativeList(token);
+//            //2:获取全量视频素材数据
+//            kuaishouInterfaceService.getVideoList(token);
+//        });
+//        log.info("物料数据同步完成");
 
         for (CtopOauthToken token : tokens) {
             kuaishouInterfaceService.getAdvertiserReportHourly(token, getDate, getDate);

+ 2 - 2
module-kuaishou/src/main/java/cn/com/ctop/kuaishou/modules/batch/service/impl/KuaishouInterfaceServiceImpl.java

@@ -802,8 +802,8 @@ public class KuaishouInterfaceServiceImpl implements IKuaishouInterfaceService {
             var creative = JSONObject.toJavaObject(detailJson, KuaishouReportHourlyCreative.class);
             creative.setAccountId(token.getAccountId());
             creative.setId("" + creative.getAccountId() + creative.getCreativeId() + creative.getStatDate() + creative.getStatHour());
-            KuaishouReportHourlyCreativeStatistic statistic = setHourlyStatistic(creative, token);
-            hourlyCreativeStatisticService.saveOrUpdate(statistic);
+//            KuaishouReportHourlyCreativeStatistic statistic = setHourlyStatistic(creative, token);
+//            hourlyCreativeStatisticService.saveOrUpdate(statistic);
             hourlyCreativeService.saveOrUpdate(creative);
         }
         getAdvertiserCreativeReportHourlyByPage(token, startDate, endDate, page + 1);