|
@@ -30,13 +30,15 @@ public class KuaishouDailyCampaignReportLoadJob {
|
|
@XxlJob("kuaishouDailyCampaignReport")
|
|
@XxlJob("kuaishouDailyCampaignReport")
|
|
public void execute() throws Exception {
|
|
public void execute() throws Exception {
|
|
Date getDate = DateUtils.addDay(new Date(), -1);
|
|
Date getDate = DateUtils.addDay(new Date(), -1);
|
|
|
|
+ Date getDate2 = DateUtils.addDay(new Date(), -2);
|
|
//1:查询当日数据
|
|
//1:查询当日数据
|
|
List<CtopOauthToken> tokens = tokenService.selectKuaiShouToken();
|
|
List<CtopOauthToken> tokens = tokenService.selectKuaiShouToken();
|
|
- if (null == tokens || tokens.size() <= 0) {
|
|
|
|
|
|
+ if (null == tokens || tokens.isEmpty()) {
|
|
XxlJobHelper.log("定时获取快手数据异常:未获取到可用的token");
|
|
XxlJobHelper.log("定时获取快手数据异常:未获取到可用的token");
|
|
XxlJobHelper.handleFail();
|
|
XxlJobHelper.handleFail();
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
- tokens.forEach(token -> executorService.submit(() -> kuaishouInterfaceService.getAdvertiserCampaignReportDaily(token, getDate, getDate)));
|
|
|
|
|
|
+
|
|
|
|
+ tokens.forEach(token -> executorService.submit(() -> kuaishouInterfaceService.getAdvertiserCampaignReportDaily(token, getDate, getDate2)));
|
|
}
|
|
}
|
|
}
|
|
}
|