|
@@ -11,6 +11,7 @@ import cn.com.ctop.kuaishou.modules.report.mapper.EtlKuaishouAccountMaterialRepo
|
|
|
import cn.com.ctop.kuaishou.modules.report.service.IKuaishouReportDailyImageService;
|
|
|
import cn.com.ctop.oa.modules.service.IWechatNoListService;
|
|
|
import cn.com.ctop.toutiao.modules.link.service.IETLReportBytedanceVideoService;
|
|
|
+import cn.com.ctop.toutiao.modules.material.service.IByteDanceAdvertiserDataService;
|
|
|
import cn.com.ctop.toutiao.modules.material.service.IByteDanceCampaignService;
|
|
|
import cn.com.ctop.toutiao.modules.report.service.*;
|
|
|
import com.csvreader.CsvReader;
|
|
@@ -122,18 +123,13 @@ public class SampleTest {
|
|
|
@Autowired
|
|
|
private IBytedanceReportService bytedanceReportService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IByteDanceAdvertiserDataService advertiserDataService;
|
|
|
+
|
|
|
@Test
|
|
|
public void loadBytedanceVideoReportData() {
|
|
|
- String startDate = "2021-04-01";
|
|
|
- String endDate = "2021-04-26";
|
|
|
- List<CtopOauthToken> tokens = tokenService.selectToutiaoToken();
|
|
|
- Long start = System.currentTimeMillis();
|
|
|
-
|
|
|
- tokens.forEach(token -> {
|
|
|
- bytedanceReportService.bytedanceVideoMaterialReport(token, startDate, endDate);
|
|
|
- });
|
|
|
- Long end = System.currentTimeMillis();
|
|
|
- log.info("查询素材消耗用时:{}毫秒", end - start);
|
|
|
+ CtopOauthToken token = tokenService.getTokenByAccountId(1696831659659278L);
|
|
|
+ advertiserDataService.getMaterialList(token);
|
|
|
}
|
|
|
|
|
|
@Autowired
|