فهرست منبع

添加达人补全定时

zhaoxian 1 سال پیش
والد
کامیت
532c0b0d71

+ 7 - 3
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/TestController.java

@@ -1,5 +1,8 @@
 package org.jeecg.modules.ctop.controller;
 
+import cn.com.ctop.common.module.entity.CtopOauthToken;
+import cn.com.ctop.common.module.entity.KuaiShouOcpxActionTypeConfig;
+import cn.com.ctop.common.module.entity.Project;
 import cn.com.ctop.common.module.mapper.CtopOauthTokenMapper;
 import cn.com.ctop.common.module.mapper.MailLogMapper;
 import cn.com.ctop.common.module.mapper.UserAllocationMapper;
@@ -209,8 +212,8 @@ public class TestController {
 
     }
 
-
-
+    @Value("${xxl-job.requestUrl}")
+    private String jobUrl;
 
 
  /*   @GetMapping(value = "/updateMaterial")
@@ -1601,7 +1604,8 @@ public class TestController {
     private IKuaishouStrategyService kuaishouStrategyService;
     static ExecutorService executorServic1e = Executors.newFixedThreadPool(5);
 
-    *//**
+    */
+    /**
      * 勿动勿删,煜一人群报表数据拉取接口。
      *
      * @param

+ 25 - 0
module-job-bytedance/src/main/java/cn/com/ctop/job/bytedance/handler/CheckPromoterJob.java

@@ -0,0 +1,25 @@
+package cn.com.ctop.job.bytedance.handler;
+
+
+import cn.com.ctop.alarm.modules.mapper.RuleAccountTemplateMapper;
+import cn.com.ctop.common.module.utils.HttpUtils;
+import com.xxl.job.core.handler.annotation.XxlJob;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+/**
+ * 达人补全定时
+ */
+@Component
+public class CheckPromoterJob {
+    @Autowired
+    private RuleAccountTemplateMapper ruleAccountTemplateMapper;
+
+    String URLPREFIX = "http://ruixuan.api.tjyourong.com.cn/kuaishou/promoter/supplementInfo";
+
+
+    @XxlJob("supplementPromoterJob")
+    public void execute() throws Exception {
+        HttpUtils.httpGet(URLPREFIX, null, null);
+    }
+}