Browse Source

Merge remote-tracking branch 'origin/master'

yumeng 4 years ago
parent
commit
dfe6702999

+ 11 - 0
module-job-kuaishou/src/main/java/cn/com/ctop/job/kuaishou/handler/KuaishouEtlVideoJob.java

@@ -1,6 +1,7 @@
 package cn.com.ctop.job.kuaishou.handler;
 
 import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouVideoGetService;
+import cn.com.ctop.kuaishou.modules.material.service.IEtlKuaishouVideoInfoService;
 import cn.com.ctop.kuaishou.modules.report.service.IKuaishouVideoEtlInfoService;
 import com.xxl.job.core.handler.annotation.XxlJob;
 import org.jeecg.common.util.DateUtils;
@@ -15,6 +16,9 @@ public class KuaishouEtlVideoJob {
     private IKuaishouVideoEtlInfoService kuaishouVideoEtlInfoService;
     @Autowired
     private IKuaiShouVideoGetService videoGetService;
+    @Autowired
+    private IEtlKuaishouVideoInfoService videoEtlInfoService;
+
 
     @XxlJob("kuaishouEtlVideoJob")
     public void execute() throws Exception {
@@ -40,5 +44,12 @@ public class KuaishouEtlVideoJob {
         videoGetService.etlVideoBaseInfoByStaDate(statDate);
     }
 
+    @XxlJob("etlFinalKuaishouVideoInfo")
+    public void etlKuaishouVideoInfo(){
+        Date startDate = DateUtils.addDay(new Date(), -2);
+        for(int i=0;i<=2;i++){
+            videoEtlInfoService.etlKuaishouVideoInfo(DateUtils.formatDate(DateUtils.addDay(startDate,i)));
+        }
+    }
 
 }