From 241408b071cb1b43d9307ae9c75c82bb77b6faa7 Mon Sep 17 00:00:00 2001
From: zhaozhengjie <237651143@qq.com>
Date: 星期二, 20 九月 2022 17:10:27 +0800
Subject: [PATCH] Merge branch 'haucheng_panzhihua' into huacheng_test

---
 springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/WxUtil.java |  119 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++---
 1 files changed, 113 insertions(+), 6 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/WxUtil.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/WxUtil.java
index 7d0278e..86ddeee 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/WxUtil.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/WxUtil.java
@@ -455,21 +455,127 @@
             log.error("危险人员订阅消息推送失败,失败原因:" + e.getMessage());
         }
     }
-    public static void sendUuWash(String openId, String accessToken, String status,String washerName,String washerMobile,String templateId){
+
+    /**
+     * uu洗车订单状态更改
+     * @param openId
+     * @param accessToken
+     * @param status
+     * @param washerName
+     * @param washerMobile
+     * @param phone
+     * @param templateId
+     */
+    public static void sendUuWash(String openId, String accessToken, String status,String washerName,String washerMobile,String phone,String templateId){
         WxSubscribeDTO subscribeDTO = new WxSubscribeDTO();
         subscribeDTO.setTouser(openId);
         subscribeDTO.setTemplate_id(templateId);
         subscribeDTO.setPage("packageD/pages/washer/order/index");
         List<TemplateParam> paras=new ArrayList<TemplateParam>();
-        paras.add(new TemplateParam("phrase6", "订单状态:"+status));
-        paras.add(new TemplateParam("thing9", washerName));
-        paras.add(new TemplateParam("thing1","车美信息"));
-        paras.add(new TemplateParam("thing4", "社区报备数据统计"));
+        paras.add(new TemplateParam("thing1", "上门洗车"));
+        paras.add(new TemplateParam("thing4", phone));
         subscribeDTO.setTemplateParamList(paras);
         try {
             sendSubscribe(accessToken,subscribeDTO);
         }catch (Exception e){
-            log.error("危险人员订阅消息推送失败,失败原因:" + e.getMessage());
+            log.error(e.getMessage());
+        }
+    }
+    /**
+     * uu洗车订单状态更改
+     * @param openId
+     * @param accessToken
+     * @param status
+     * @param washerName
+     * @param washerMobile
+     * @param phone
+     * @param templateId
+     */
+    public static void sendUuWash3(String openId, String accessToken, String status,String washerName,String washerMobile,String phone,String templateId){
+        WxSubscribeDTO subscribeDTO = new WxSubscribeDTO();
+        subscribeDTO.setTouser(openId);
+        subscribeDTO.setTemplate_id(templateId);
+        subscribeDTO.setPage("packageD/pages/washer/order/index");
+        List<TemplateParam> paras=new ArrayList<TemplateParam>();
+        paras.add(new TemplateParam("thing9", washerName));
+        paras.add(new TemplateParam("phone_number10",washerMobile));
+        subscribeDTO.setTemplateParamList(paras);
+        try {
+            sendSubscribe(accessToken,subscribeDTO);
+        }catch (Exception e){
+            log.error(e.getMessage());
+        }
+    }
+    /**
+     * uu洗车订单状态更改
+     * @param openId
+     * @param accessToken
+     * @param status
+     * @param washerName
+     * @param washerMobile
+     * @param phone
+     * @param templateId
+     */
+    public static void sendUuWash4(String openId, String accessToken, String status,String washerName,String washerMobile,String phone,String templateId){
+        WxSubscribeDTO subscribeDTO = new WxSubscribeDTO();
+        subscribeDTO.setTouser(openId);
+        subscribeDTO.setTemplate_id(templateId);
+        subscribeDTO.setPage("packageD/pages/washer/order/index");
+        List<TemplateParam> paras=new ArrayList<TemplateParam>();
+        paras.add(new TemplateParam("thing4", status));
+        paras.add(new TemplateParam("thing3", washerName));
+        paras.add(new TemplateParam("thing6",washerMobile));
+        subscribeDTO.setTemplateParamList(paras);
+        try {
+            sendSubscribe(accessToken,subscribeDTO);
+        }catch (Exception e){
+            log.error(e.getMessage());
+        }
+    }
+    /**
+     * uu洗车订单状态更改
+     * @param openId
+     * @param accessToken
+     * @param status
+     * @param washerName
+     * @param washerMobile
+     * @param phone
+     * @param templateId
+     */
+    public static void sendUuWash6(String openId, String accessToken, String status,String washerName,String washerMobile,String phone,String templateId){
+        WxSubscribeDTO subscribeDTO = new WxSubscribeDTO();
+        subscribeDTO.setTouser(openId);
+        subscribeDTO.setTemplate_id(templateId);
+        subscribeDTO.setPage("packageD/pages/washer/order/index");
+        List<TemplateParam> paras=new ArrayList<TemplateParam>();
+        paras.add(new TemplateParam("phrase14", status));
+        paras.add(new TemplateParam("name3", washerName));
+        paras.add(new TemplateParam("thing5",washerMobile));
+        subscribeDTO.setTemplateParamList(paras);
+        try {
+            sendSubscribe(accessToken,subscribeDTO);
+        }catch (Exception e){
+            log.error(e.getMessage());
+        }
+    }
+    /**
+     * 长期订阅模板消息推送
+     * @param openId
+     * @param accessToken
+     */
+    public static void sendLongTimeTemplate(String openId, String accessToken, String word,String content,String page) {
+        WxSubscribeDTO subscribeDTO = new WxSubscribeDTO();
+        subscribeDTO.setTouser(openId);
+        subscribeDTO.setTemplate_id("5f-xcy4lrWy_0kc5H4dj5bgBM-MwsvTwPApA-u3fqsQ");
+        subscribeDTO.setPage(page);
+        List<TemplateParam> paras = new ArrayList<TemplateParam>();
+        paras.add(new TemplateParam("thing3", word));
+        paras.add(new TemplateParam("thing6", content));
+        subscribeDTO.setTemplateParamList(paras);
+        try {
+            sendSubscribe(accessToken, subscribeDTO);
+        } catch (Exception e) {
+            log.error(e.getMessage());
         }
     }
     public static void main(String[] args) {
@@ -491,4 +597,5 @@
         }
     }
 
+
 }

--
Gitblit v1.7.1