|
@@ -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.mapper.BytedanceReportMaterialDailyMapper;
|
|
|
import cn.com.ctop.toutiao.modules.report.service.IByteDanceVideoReportDailyService;
|
|
|
import cn.com.ctop.toutiao.modules.report.service.IBytedanceReportService;
|
|
|
import com.xxl.job.core.context.XxlJobHelper;
|
|
@@ -10,6 +11,7 @@ import org.jeecg.common.util.DateUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.concurrent.CountDownLatch;
|
|
@@ -24,7 +26,8 @@ public class BytedanceDailyMaterialReportJob {
|
|
|
private ICtopOauthTokenService tokenService;
|
|
|
@Autowired
|
|
|
private IBytedanceReportService bytedanceReportService;
|
|
|
-
|
|
|
+ @Resource
|
|
|
+ private BytedanceReportMaterialDailyMapper bytedanceReportMaterialDailyMapper;
|
|
|
@XxlJob("bytedanceDailyMaterialReportJob")
|
|
|
public void execute() throws Exception {
|
|
|
Date getDate2 = DateUtils.addDay(new Date(), -2);
|
|
@@ -67,6 +70,9 @@ public class BytedanceDailyMaterialReportJob {
|
|
|
} catch (InterruptedException e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
+ bytedanceReportMaterialDailyMapper.updateImageReportCode();
|
|
|
+ bytedanceReportMaterialDailyMapper.updateImageReportProjectId();
|
|
|
+ bytedanceReportMaterialDailyMapper.updateImageReportProjectName();
|
|
|
Long end = System.currentTimeMillis();
|
|
|
XxlJobHelper.log("头条素材数据获取耗时:{}毫秒", end - start);
|
|
|
|