소스 검색

V1.1.4 修改定时任务

yumeng 4 년 전
부모
커밋
a136c086ac
1개의 변경된 파일2개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      module-job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/handler/KuaishouDailyAccountReportLoadJob.java

+ 2 - 3
module-job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/handler/KuaishouDailyAccountReportLoadJob.java

@@ -31,7 +31,7 @@ public class KuaishouDailyAccountReportLoadJob {
     public void execute() throws Exception {
         Date getDate = DateUtils.addDay(new Date(), -1);
         Date getDate2 = DateUtils.addDay(new Date(), -2);
-        Date getDate3 = DateUtils.addDay(new Date(), -3);
+
         //1:查询当日数据
         List<CtopOauthToken> tokens = tokenService.selectKuaiShouToken();
         if (null == tokens || tokens.isEmpty()) {
@@ -42,8 +42,7 @@ public class KuaishouDailyAccountReportLoadJob {
         tokens.forEach(token -> executorService.submit(() ->{
                     kuaishouInterfaceService.getAdvertiserReportDaily(token, getDate2, getDate2);
                     kuaishouInterfaceService.getAdvertiserReportDaily(token, getDate, getDate);
-                    kuaishouInterfaceService.getAdvertiserReportDaily(token, getDate3, getDate3);
-                    kuaishouInterfaceService.getAdvertiserReportHourly(token, getDate3, getDate3);
+
 
         }));
     }