|
@@ -32,6 +32,7 @@ public class KuaishouDailyAccountReportLoadJob {
|
|
|
public ReturnT<String> execute(String param) 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()) {
|
|
@@ -41,6 +42,7 @@ public class KuaishouDailyAccountReportLoadJob {
|
|
|
tokens.forEach(token -> executorService.submit(() ->{
|
|
|
kuaishouInterfaceService.getAdvertiserReportDaily(token, getDate2, getDate2);
|
|
|
kuaishouInterfaceService.getAdvertiserReportDaily(token, getDate, getDate);
|
|
|
+ kuaishouInterfaceService.getAdvertiserReportDaily(token, getDate3, getDate);
|
|
|
}));
|
|
|
return ReturnT.SUCCESS;
|
|
|
}
|