hpk 1 год назад
Родитель
Сommit
a5d5194edc

+ 2 - 1
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/handler/BytedancePromoterReportJob.java

@@ -152,12 +152,13 @@ public class BytedancePromoterReportJob {
     @XxlJob("todayMaterialVideoGet")
     public void materialVideoGet() throws Exception {
         String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
+        String date = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1);
         List<JSONObject> costAccount = productReportService.getCostAccount(null, nowDate, nowDate);
         for (JSONObject jsonObject : costAccount) {
             dailyExecutorService.submit(() -> {
                 Long adverId = jsonObject.getLong("advertiserId");
                 String accessToken = jsonObject.getString("accessToken");
-                bytedanceMaterialReportService.getBytedanceMaterialVideo(adverId, null, accessToken, null, null, 1, null, 1, 0, 1);
+                bytedanceMaterialReportService.getBytedanceMaterialVideo(adverId, null, accessToken, date, nowDate, 1, null, 1, 0, 1);
             });
         }
     }