zhouzeyu@c-top.com.cn 3 роки тому
батько
коміт
655d7237bd

+ 5 - 1
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/handler/BytedancePlanLoadJob.java

@@ -51,10 +51,14 @@ public class BytedancePlanLoadJob {
             log.error("此账户未获取到相关token,accountId:{}", param);
             return;
         }
+        String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
+        String yesterda = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1);
+        String yesterda2 = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -2);
         OauthToken oauthToken = new OauthToken();
         oauthToken.setAccessToken(token);
         oauthToken.setAccountId(Long.parseLong(param));
-        advertiserDataService.getAdvertiserPlan(oauthToken, "", null, null);
+        advertiserDataService.getAdvertiserPlan(oauthToken, "", null, yesterda);
+        advertiserDataService.getAdvertiserPlan(oauthToken, "", null, yesterda2);
     }
 
     /**