Browse Source

修改定时任务

syh 5 years ago
parent
commit
53fa609c67

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

@@ -33,17 +33,6 @@ public class KuaishouDailyReportLoadJob implements Job {
             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 - 4
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/job/KuaishouHourlyReportLoadJob.java

@@ -61,7 +61,7 @@ public class KuaishouHourlyReportLoadJob implements Job {
                         kuaishouInterfaceService.getAdvertiserGroupReportHourly(token, finalGetDate, finalGetDate);
                         //4: 获取广告创意信息数据
                         kuaishouInterfaceService.getAdvertiserCreativeReportHourly(token, finalGetDate, finalGetDate);
-
+                        kuaishouInterfaceService.updateCreativeReportHourlyStatistic(token, finalGetDate);
                     } catch (Exception e) {
                         e.printStackTrace();
                     } finally {
@@ -76,8 +76,5 @@ public class KuaishouHourlyReportLoadJob implements Job {
             e.printStackTrace();
         }
         executorService.shutdown();
-        for (CtopOauthToken token : tokens) {
-            kuaishouInterfaceService.updateCreativeReportHourlyStatistic(token, getDate);
-        }
     }
 }