|
@@ -35,6 +35,7 @@ public class BytedancePlanDailyReportLoadJob {
|
|
@XxlJob("bytedancePlanDailyReport")
|
|
@XxlJob("bytedancePlanDailyReport")
|
|
public ReturnT<String> execute(String param) throws Exception {
|
|
public ReturnT<String> execute(String param) 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.getTokenListByType(CtopAdConstant.PLATFORM_TYPE_BYTEDANCE);
|
|
List<CtopOauthToken> tokens = tokenService.getTokenListByType(CtopAdConstant.PLATFORM_TYPE_BYTEDANCE);
|
|
if (null == tokens || tokens.size() <= 0) {
|
|
if (null == tokens || tokens.size() <= 0) {
|
|
@@ -49,6 +50,9 @@ public class BytedancePlanDailyReportLoadJob {
|
|
planDailyReportService.cleanYzData(151);
|
|
planDailyReportService.cleanYzData(151);
|
|
planDailyReportService.cleanChannelCodeData(235, getDate);
|
|
planDailyReportService.cleanChannelCodeData(235, getDate);
|
|
planDailyReportService.cleanChannelCodeData(270, getDate);
|
|
planDailyReportService.cleanChannelCodeData(270, getDate);
|
|
|
|
+
|
|
|
|
+ //跑次留
|
|
|
|
+ tokens.forEach(token -> reportService.getAdvertiserPlanReport(token, getDate2, getDate2, CtopAdConstant.BYTEDANCE_REPORT_TYPE_DAILY));
|
|
return ReturnT.SUCCESS;
|
|
return ReturnT.SUCCESS;
|
|
}
|
|
}
|
|
|
|
|