Przeglądaj źródła

推送的消息的备注

姜永辉 1 rok temu
rodzic
commit
ee3eee1f70

+ 6 - 5
src/main/java/com/dk/mdm/service/mst/CusFollowService.java

@@ -426,15 +426,15 @@ public class CusFollowService extends BaseService<CusFollow> {
 
                 } else if (Constant.BasicDataConstant.FOLLOW_STATUS_6.getValue().equals(follow.getFollowStatus())) {
                     list.add("您有客户需要量尺服务");
-                    loginType = "1";
+                    loginType = "8";
 
                 } else if (Constant.BasicDataConstant.FOLLOW_STATUS_2.getValue().equals(follow.getFollowStatus())) {
                     list.add("您有客户邀约进店");
-                    loginType = "1";
+                    loginType = "8";
 
                 } else if (Constant.BasicDataConstant.FOLLOW_STATUS_3.getValue().equals(follow.getFollowStatus())) {
                     list.add("您有客户需要约尺服务");
-                    loginType = "1";
+                    loginType = "8";
                 }
                 list.add(customer.getCusName());
                 list.add(customer.getCusPhone());
@@ -450,6 +450,7 @@ public class CusFollowService extends BaseService<CusFollow> {
                         // 发送消息
                         Map<String, Object> mapMessage = new HashMap<>();
                         mapMessage.put("loginType", loginType);
+                        mapMessage.put("otherParam", follow);
                         mapMessage.put("publicOpenId", user.get("publicOpenId"));
                         mapMessage.put("first", "客户跟进提醒");
                         mapMessage.put("keywordList", list);
@@ -491,8 +492,8 @@ public class CusFollowService extends BaseService<CusFollow> {
                 put("appid", config.getAppId());
                 //用户点击公众号推送消息跳转小程序单据详情页 orderType  里面存放json字符串数据
                 //判断InvoiceParam
-                if (map.containsKey("InvoiceParam")) {
-                    put("pagepath", "pages/login/login?loginType=" + map.get("loginType").toString() + "&InvoiceParam=" + map.get("InvoiceParam").toString());
+                if (map.containsKey("otherParam")) {
+                    put("pagepath", "pages/login/login?loginType=" + map.get("loginType").toString() + "&otherParam=" + map.get("otherParam").toString());
                 } else {
                     put("pagepath", "pages/login/login?loginType=" + map.get("loginType").toString());
                 }