|
@@ -7,6 +7,7 @@ import cn.com.ctop.common.module.utils.CtopAdConstant;
|
|
|
import cn.com.ctop.common.module.utils.HttpUtils;
|
|
|
import cn.com.ctop.common.module.utils.PropertiesUtils;
|
|
|
import cn.com.ctop.common.module.vo.ByteDanceAdvertiserReportDTO;
|
|
|
+import cn.com.ctop.toutiao.modules.material.service.IByteDanceAdvertiserDataService;
|
|
|
import cn.com.ctop.toutiao.modules.report.entity.*;
|
|
|
import cn.com.ctop.toutiao.modules.report.mapper.BytedanceReportMaterialDailyMapper;
|
|
|
import cn.com.ctop.toutiao.modules.report.service.*;
|
|
@@ -57,6 +58,14 @@ public class ReportServiceImpl implements IReportService {
|
|
|
private IBytedanceCreativeDailyReportService creativeDailyReportService;
|
|
|
@Autowired
|
|
|
private IBytedanceCreativeHourlyReportService creativeHourlyReportService;
|
|
|
+ @Autowired
|
|
|
+ private BytedanceReportMaterialDailyMapper materialDailyMapper;
|
|
|
+ @Autowired
|
|
|
+ private IBytedanceReportService bytedanceReportService;
|
|
|
+ @Autowired
|
|
|
+ private IByteDanceVideoReportDailyService byteDanceVideoReportDailyService;
|
|
|
+ @Autowired
|
|
|
+ private IByteDanceAdvertiserDataService advertiserDataService;
|
|
|
|
|
|
@Override
|
|
|
public void getAdvertiserReport(CtopOauthToken token, Date startDate, Date endDate, String bytedanceReportTypePl) {
|
|
@@ -246,12 +255,6 @@ public class ReportServiceImpl implements IReportService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- @Autowired
|
|
|
- private BytedanceReportMaterialDailyMapper materialDailyMapper;
|
|
|
- @Autowired
|
|
|
- private IBytedanceReportService bytedanceReportService;
|
|
|
- @Autowired
|
|
|
- private IByteDanceVideoReportDailyService byteDanceVideoReportDailyService;
|
|
|
|
|
|
@Override
|
|
|
public void loadBytedanceHistoryData(CtopOauthToken token) {
|
|
@@ -263,6 +266,7 @@ public class ReportServiceImpl implements IReportService {
|
|
|
}
|
|
|
|
|
|
try {
|
|
|
+ advertiserDataService.getMaterialList(token);
|
|
|
log.info("获取历史素材报表:accountId:{}", token.getAccountId());
|
|
|
String nowDate = DateUtils.getNowDate("yyyy-MM-dd");
|
|
|
String endDate = DateUtils.addDay(nowDate, -180);
|