|
@@ -2,6 +2,7 @@ package cn.com.ctop.job.bytedance.handler;
|
|
|
|
|
|
import cn.com.ctop.common.module.entity.CtopOauthToken;
|
|
|
import cn.com.ctop.common.module.service.ICtopOauthTokenService;
|
|
|
+import cn.com.ctop.toutiao.modules.report.service.IByteDanceVideoReportDailyService;
|
|
|
import cn.com.ctop.toutiao.modules.report.service.IBytedanceReportService;
|
|
|
import com.xxl.job.core.biz.model.ReturnT;
|
|
|
import com.xxl.job.core.handler.annotation.XxlJob;
|
|
@@ -35,7 +36,7 @@ public class BytedanceDailyMaterialReportJob {
|
|
|
XxlJobLogger.log("头条获取素材报表数据任务开始,任务时间:" + date2 + "~" + date);
|
|
|
|
|
|
List<CtopOauthToken> tokens = tokenService.selectToutiaoToken();
|
|
|
- if (null == tokens || tokens.size() <= 0) {
|
|
|
+ if (null == tokens || tokens.isEmpty()) {
|
|
|
XxlJobLogger.log("头条获取素材报表数据任务执行失败:未获取到可用的token");
|
|
|
return ReturnT.FAIL;
|
|
|
}
|
|
@@ -68,6 +69,12 @@ public class BytedanceDailyMaterialReportJob {
|
|
|
}
|
|
|
Long end = System.currentTimeMillis();
|
|
|
XxlJobLogger.log("头条素材数据获取耗时:{}毫秒", end - start);
|
|
|
+
|
|
|
+ videoReportDailyService.videoInfoList(date, date);
|
|
|
+ videoReportDailyService.videoInfoList(date2, date2);
|
|
|
return ReturnT.SUCCESS;
|
|
|
}
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private IByteDanceVideoReportDailyService videoReportDailyService;
|
|
|
}
|