From b0b94a084ed6c1a685caebb8dfb1a0d65fdd9ef6 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期二, 16 七月 2024 10:57:42 +0800
Subject: [PATCH] 提交

---
 server/service/src/main/java/com/doumee/core/utils/Constants.java |   58 +++++++++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 43 insertions(+), 15 deletions(-)

diff --git a/server/service/src/main/java/com/doumee/core/utils/Constants.java b/server/service/src/main/java/com/doumee/core/utils/Constants.java
index 95372cc..8b19260 100644
--- a/server/service/src/main/java/com/doumee/core/utils/Constants.java
+++ b/server/service/src/main/java/com/doumee/core/utils/Constants.java
@@ -38,8 +38,12 @@
     public static final String HK_ROOTORG_CODE ="HK_ROOTORG_CODE" ;
     public static final String HK_ROOTORG_NAME ="HK_ROOTORG_NAME" ;
     public static final String REDIS_TOKEN_KEY = "token_";
+    public static final String CUSTOMER = "CUSTOMER";
+    public static final String BUSINESS = "BUSINESS";
+
 
     //琚嫓璁夸汉淇℃伅鏍¢獙鏂瑰紡锛�0鎵嬫満鍙峰崟鐙牎楠� 1鎵嬫満鍙峰拰濮撳悕缁勫悎鏍¢獙锛�
+    public static final String ZBOM_CRM_AUTH_API_KEY = "ZBOM_CRM_AUTH_API_KEY";
     public static final String BEVISITED_USER_VALID = "BEVISITED_USER_VALID";
     public static final String LW_BEVISITED_USER_VALID = "LW_BEVISITED_USER_VALID";
     public static final String SELECT_DOORS_VISIT_REQUIRED = "SELECT_DOORS_VISIT_REQUIRED";
@@ -53,6 +57,7 @@
     public static final String FILE_DIR = "";
     public static final String INITIAL_PASSWORD = "INITIAL_PASSWORD";
     public static final String VALIDATE_VISIT = "VALIDATE_VISIT";
+    public static final String PLATFORM = "mp-weixin";
 
     // 璁垮鏉ヨ閰嶇疆
     public static final String VISIT_CONFIG = "VISIT_CONFIG";
@@ -320,7 +325,9 @@
 
 
     public static final String WX_PLATFORM = "WX_PLATFORM";
+    public static final String ZBOM_ZHONGTAI_API_URL = "ZBOM_ZHONGTAI_API_URL";
     public static final String WX_PLATFORM_ACCESS_TOKEN = "WX_PLATFORM_ACCESS_TOKEN";
+    public static final String ZBOM_ENCODE_URL = "ZBOM_ENCODE_URL";
     public static final String WX_PLATFORM_APPID = "WX_PLATFORM_APPID";
     public static final String WX_PLATFORM_SECRET = "WX_PLATFORM_SECRET";
     public static final String WX_PLATFORM_AUDIT_VISIT = "WX_PLATFORM_AUDIT_VISIT";
@@ -340,29 +347,17 @@
     public static final String WX_SECRET_PERSONNEL = "WX_SECRET_PERSONNEL";
 
 
-    public interface CrmSources{
-
-
-       String SOURCE_DKXD = "DKXD";// 浠e涓嬪崟(DKXD)
-       String SOURCE_LYSJ = "LYSJ";// 闆跺厓璁捐(LYSJ)
-       String SOURCE_ZBSJSQ = "ZBSJSQ";// 蹇楅偊璁捐鐢宠(ZBSJSQ)
-       String SOURCE_ZBDXFX = "ZBDXFX";// 蹇楅偊鐭俊鍒嗕韩(ZBDXFX)
-       String SOURCE_ZBLLJL = "ZBLLJL";// 蹇楅偊娴忚璁板綍鍒嗕韩(ZBLLJL)
-       String SOURCE_ZBWDSC = "ZBWDSC";// 蹇楅偊鎴戠殑鏀惰棌鍒嗕韩(ZBWDSC)
-       String SOURCE_ZBLYSJ = "ZBLYSJ";// 蹇楅偊闆跺厓璁捐(ZBLYSJ)
-       String SOURCE_ZBLDX = "ZBLDX";// 蹇楅偊鑰佸甫鏂�(ZBLDX)
-       String SOURCE_ZBFGCS = "ZBFGCS";// 蹇楅偊椋庢牸娴嬭瘯(ZBFGCS)
-       String SOURCE_ZBJX = "DSLX22";// 蹇楅偊瀹堕��(ZBJX)
-    }
-
     public interface RedisKeys {
        String IMPORTING_MEMBER ="IMPORTING_MEMBER";
        String IMPORTING_SHOP ="IMPORTING_SHOP";
        String IMPORTING_USERS ="IMPORTING_USERS";
        String IAM_APPID ="IAM_APPID";
        String ZBOM_CRM_API_KEY ="ZBOM_CRM_API_KEY";
+       String ZBOM_CRM_AUTH_API_KEY ="ZBOM_CRM_AUTH_API_KEY";
        String ZBOM_CRM_API_URL ="ZBOM_CRM_API_URL";
+       String ZBOM_ENCODE_URL ="ZBOM_ENCODE_URL";
        String ZBOM_SMS_API_KEY ="ZBOM_SMS_API_KEY";
+       String ZBOM_ZHONGTAI_API_URL ="ZBOM_ZHONGTAI_API_URL";
        String ZBOM_SMS_API_URL ="ZBOM_SMS_API_URL";
        String IAM_APPKEY ="IAM_APPKEY";
        String SHOP_TREE ="SHOP_TREE";
@@ -449,6 +444,39 @@
     int otherDeal = 4;//浠栦汉宸插鐞�
 }
 
+
+    /**
+     * 鏍规嵁閰嶇疆澶勭悊鎴垮眿鎴峰瀷淇℃伅
+     * @param layout
+     * @return
+     */
+    public static String getHouseLayout(String layout){
+        if(StringUtils.isBlank(layout)){
+            return null;
+        }
+        String [] arr = layout.split("-");
+        StringBuffer stringBuffer = new StringBuffer();
+        for (int i = 0; i < arr.length; i++) {
+            if(i==0){
+                stringBuffer.append( i + "瀹�");
+            }else if(i==1){
+                stringBuffer.append( i + "鍘�");
+            }else if(i==2){
+                stringBuffer.append( i + "鍘�");
+            }else if(i==3){
+                stringBuffer.append( i + "鍗�");
+            }else if(i==4){
+                stringBuffer.append( i + "闃�");
+            }else {
+                break;
+            }
+
+        }
+        return stringBuffer.toString();
+}
+
+
+
     /**
      * 鑾峰彇杞︾墝绫诲瀷淇℃伅
      *

--
Gitblit v1.9.3