Pārlūkot izejas kodu

财务结算-给运营发送微信通知(每月1号早9点30)

yangzian 3 gadi atpakaļ
vecāks
revīzija
e2dca14a33

+ 38 - 0
module-job-bytedance/src/main/java/cn/com/ctop/job/bytedance/handler/CwjsPolicyApprovedNoticeJob.java

@@ -20,4 +20,42 @@ public class CwjsPolicyApprovedNoticeJob {
             XxlJobHelper.log(e.getMessage());
         }
     }
+
+
+    /**
+     * 财务结算中 给运营发送微信通知 每月1号 早上9点
+     * @throws Exception
+     */
+    @XxlJob("sendMessageToOperate")
+    public void sendMessageToOperate() throws Exception {
+        try {
+//            String url = "http://gateway.tjyourong.com.cn/finance/cwjsPolicyInfo/weiXinNotice";
+            String url = "http://api.tjyourong.com.cn/finance/exportReportController/sendMessageToOperate";
+            HttpUtils2.httpGet(url, null, null);
+            XxlJobHelper.log("send CWJS-operate weixin message success");
+        } catch (Exception e) {
+            XxlJobHelper.log(e.getMessage());
+        }
+    }
+
+    /**
+     * demo
+     * @throws Exception
+     */
+    @XxlJob("sendMessageToOperateDemo")
+    public void sendMessageToOperateDemo() throws Exception {
+        try {
+            String url = "http://api.tjyourong.com.cn/finance/exportReportController/sendMessageToOperateDemo";
+            HttpUtils2.httpGet(url, null, null);
+            XxlJobHelper.log("send CWJS-operate weixin message success");
+        } catch (Exception e) {
+            XxlJobHelper.log(e.getMessage());
+        }
+    }
+
+
+
+
+
+
 }