Просмотр исходного кода

智投助手执行ID列表测试

zhaotx 7 месяцев назад
Родитель
Сommit
e64a00ac08

+ 22 - 18
job-bytedance/src/main/java/cn/com/ctop/job/bytedance/handler/ZtPolicyKob.java

@@ -3,6 +3,7 @@ package cn.com.ctop.job.bytedance.handler;
 
 import cn.com.ctop.job.bytedance.data.service.IZtPolicyRunService;
 import cn.com.ctop.job.bytedance.data.utils.Check;
+import cn.com.ctop.job.bytedance.utils.FeishuRobotUtil;
 import com.xxl.job.core.context.XxlJobHelper;
 import com.xxl.job.core.handler.annotation.XxlJob;
 import lombok.extern.slf4j.Slf4j;
@@ -37,12 +38,13 @@ public class ZtPolicyKob {
             return;
         }
         Long policyId = Long.valueOf(param);
-        halfHourExecutorService.submit(new Runnable() {
-            @Override
-            public void run() {
-                policyRunService.run(policyId);
-            }
-        });
+        FeishuRobotUtil.sendTextToWebhook("智投助手执行半小时级策略:"+policyId, "https://open.feishu.cn/open-apis/bot/v2/hook/c0a4845b-a7a6-4241-ae6a-6c656567fbd7");
+//        halfHourExecutorService.submit(new Runnable() {
+//            @Override
+//            public void run() {
+//                policyRunService.run(policyId);
+//            }
+//        });
     }
 
 
@@ -60,12 +62,13 @@ public class ZtPolicyKob {
             return;
         }
         Long policyId = Long.valueOf(param);
-        oneHourExecutorService.submit(new Runnable() {
-            @Override
-            public void run() {
-                policyRunService.run(policyId);
-            }
-        });
+        FeishuRobotUtil.sendTextToWebhook("智投助手执行小时级策略:"+policyId, "https://open.feishu.cn/open-apis/bot/v2/hook/c0a4845b-a7a6-4241-ae6a-6c656567fbd7");
+//        oneHourExecutorService.submit(new Runnable() {
+//            @Override
+//            public void run() {
+//                policyRunService.run(policyId);
+//            }
+//        });
     }
 
 
@@ -83,12 +86,13 @@ public class ZtPolicyKob {
             return;
         }
         Long policyId = Long.valueOf(param);
-        oneDayExecutorService.submit(new Runnable() {
-            @Override
-            public void run() {
-                policyRunService.run(policyId);
-            }
-        });
+        FeishuRobotUtil.sendTextToWebhook("智投助手执行天级策略:"+policyId, "https://open.feishu.cn/open-apis/bot/v2/hook/c0a4845b-a7a6-4241-ae6a-6c656567fbd7");
+//        oneDayExecutorService.submit(new Runnable() {
+//            @Override
+//            public void run() {
+//                policyRunService.run(policyId);
+//            }
+//        });
     }