|
|
@@ -112,7 +112,8 @@ public class BytedancePromoterReportJob {
|
|
|
}
|
|
|
|
|
|
String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
|
|
|
- String yesDate = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1);
|
|
|
+ String endDate = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1);
|
|
|
+ String startDate = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -7);
|
|
|
String[] s = param.split("_");
|
|
|
Long advertiserId = Long.valueOf(s[0]);
|
|
|
String accessToken = s[1];
|
|
|
@@ -120,12 +121,13 @@ public class BytedancePromoterReportJob {
|
|
|
hourExecutorService.submit(new Runnable() {
|
|
|
@Override
|
|
|
public void run() {
|
|
|
- promoterReportService.getBytedancePromoterHour(advertiserId, accessToken, yesDate, yesDate, 1, 1);
|
|
|
+ promoterReportService.getBytedancePromoterHour(advertiserId, accessToken, startDate, endDate, 1, 1);
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
@XxlJob("yesReportPromoterReport")
|
|
|
public void yesReportPromoterReport() throws Exception {
|
|
|
String param = XxlJobHelper.getJobParam(); // 执行参数
|
|
|
@@ -135,7 +137,8 @@ public class BytedancePromoterReportJob {
|
|
|
}
|
|
|
|
|
|
String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
|
|
|
- String yesDate = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1);
|
|
|
+ String endDate = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -1);
|
|
|
+ String startDate = DateUtils.getAnotherDay("yyyy-MM-dd", nowDate, -7);
|
|
|
String[] s = param.split("_");
|
|
|
Long advertiserId = Long.valueOf(s[0]);
|
|
|
String accessToken = s[1];
|
|
|
@@ -143,7 +146,7 @@ public class BytedancePromoterReportJob {
|
|
|
dailyExecutorService.submit(new Runnable() {
|
|
|
@Override
|
|
|
public void run() {
|
|
|
- promoterReportService.getBytedancePromoterDaily(advertiserId, accessToken, yesDate, yesDate, 1, 1);
|
|
|
+ promoterReportService.getBytedancePromoterDaily(advertiserId, accessToken, startDate, endDate, 1, 1);
|
|
|
}
|
|
|
});
|
|
|
}
|