|
@@ -67,6 +67,8 @@ public class ReportServiceImpl implements IReportService {
|
|
|
private IByteDanceVideoReportDailyService byteDanceVideoReportDailyService;
|
|
|
@Autowired
|
|
|
private IByteDanceAdvertiserDataService advertiserDataService;
|
|
|
+ @Autowired
|
|
|
+ private IBytedanceInterfaceService bytedanceInterfaceService;
|
|
|
|
|
|
@Override
|
|
|
public void getAdvertiserReport(CtopOauthToken token, Date startDate, Date endDate, String bytedanceReportTypePl) {
|
|
@@ -279,11 +281,16 @@ public class ReportServiceImpl implements IReportService {
|
|
|
List<Date> dates = DateUtils.findDates(start, end);
|
|
|
for (int i = 0; i < dates.size(); i++) {
|
|
|
String formatDate = simpleDateFormat.format(dates.get(i));
|
|
|
+ //试玩报表
|
|
|
+ bytedanceInterfaceService.bytedancePlayableReport(token,formatDate,formatDate);
|
|
|
+ //
|
|
|
+ //素材报表
|
|
|
int code = bytedanceReportService.bytedanceMaterialReport(token, formatDate, formatDate);
|
|
|
//如果成功的话跑视频清洗数据方法,失败会进入重试库,重试成功后再清洗数据
|
|
|
if (code == 200 || code == 1) {
|
|
|
byteDanceVideoReportDailyService.videoInfoListByAccountId(formatDate, formatDate, token.getAccountId());
|
|
|
}
|
|
|
+ //
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|