From 657d75ff683ef35003bedd64a0fa420e7d294f85 Mon Sep 17 00:00:00 2001
From: jiaosong <jiaosong6760@dingtalk.com>
Date: 星期四, 07 十二月 2023 16:18:16 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
server/dmvisit_service/src/main/java/com/doumee/core/utils/Constants.java | 652 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 files changed, 652 insertions(+), 0 deletions(-)
diff --git a/server/dmvisit_service/src/main/java/com/doumee/core/utils/Constants.java b/server/dmvisit_service/src/main/java/com/doumee/core/utils/Constants.java
index 924cb84..1fce4da 100644
--- a/server/dmvisit_service/src/main/java/com/doumee/core/utils/Constants.java
+++ b/server/dmvisit_service/src/main/java/com/doumee/core/utils/Constants.java
@@ -113,6 +113,15 @@
+ public static final String WX_PLATFORM = "WX_PLATFORM";
+ public static final String WX_PLATFORM_ACCESS_TOKEN = "WX_PLATFORM_ACCESS_TOKEN";
+ public static final String WX_PLATFORM_APPID = "WX_PLATFORM_APPID";
+ public static final String WX_PLATFORM_SECRET = "WX_PLATFORM_SECRET";
+
+
+
+
+
public interface RedisKeys {
public static final String GOODSORDER_KEY = "ordercode_";
@@ -170,9 +179,652 @@
return d.longValue();
}
+public interface UserRelObjType{
+ int objTypeRoom = 0;
+ int objTypeBook = 1;
+}
+public interface RoomRecordObjType{
+ int objTypeRoom = 0;//绠$悊鍛樺紑闂�
+ int objTypeBook_in = 1;//鍙備細浜哄憳寮�闂�
+ int objTypeBook_out = 2;//璁垮寮�闂�
+}
+public interface memberType{
+ int visitor = 0;//鏅�氳瀹�
+ int lw_visitor = 1;//鍔冲姟璁垮
+ int internal = 2;//鍐呴儴浜哄憳
+}
public static void main(String[] args) {
String t = URLDecoder.decode("https://lsqw.gtja.com/qwcos/v-index.html#/loginforProperty?corpId=ww4b7aefafeb430e4b&corpId=ww4b7aefafeb430e4b&agentId=1000005&agentId=1000005&fromRoute=&userCode=013561&userCode=&userId=zz&userId=&encryptUserCode=&custQwId=wmIUuSDgAAR8MhtVY8w90EyKltvoK5fA&custCode=&openId=op1wZwD1dKuBQywmWWS5957zUOJI&name=%E8%B9%84%E8%B9%84&headUrl=http%3A%2F%2Fwx.qlogo.cn%2Fmmhead%2FQ3auHgzwzM4QlibSOAvYcvRMdsoyF3Ua7duLOYSJfB3dsGsYxIYonBw%2F0&dbHeadUrl=https%3A%2F%2Ftgf.gtja.com%2Ff%2F%2Fqwoms%2F2022512%2Fqwoms_1652332606613_8.jpg");
System.out.println(t);
}
+
+ /**
+ * 鐢ㄦ埛绫诲瀷
+ */
+ public enum UserType {
+
+ SYSTEM(0, "绯荤粺鐢ㄦ埛", "绠$悊鍛�",Arrays.asList(0)),
+ ORG(1, "鏈烘瀯", "鏈烘瀯",Arrays.asList(1)),
+ CREATION(2, "鍒涗綔涓績", "鍒涗綔涓績",Arrays.asList(2))
+
+ ;
+ // 鎴愬憳鍙橀噺
+ private String name;
+ private int key;
+ private List<Integer> historyStatus;
+ private String noteinfo;// 鎻忚堪
+
+ // 鏋勯�犳柟娉�
+ UserType(int key, String name, String noteinfo,List<Integer> historyStatus) {
+ this.name = name;
+ this.key = key;
+ this.noteinfo = noteinfo;
+ this.historyStatus=historyStatus;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getName(int index) {
+ for (UserType c : UserType.values()) {
+ if (c.getKey() == index) {
+ return c.name;
+ }
+ }
+ return null;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getInfo(int index) {
+ for (UserType c : UserType.values()) {
+ if (c.getKey() == index) {
+ return c.noteinfo;
+ }
+ }
+ return null;
+ }
+ // 鏅�氭柟娉�
+ public static List<Integer> getHistoryStatus(int index) {
+ for (UserType c : UserType.values()) {
+ if (c.getKey() == index) {
+ return c.historyStatus;
+ }
+ }
+ return null;
+ }
+
+ // get set 鏂规硶
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public int getKey() {
+ return key;
+ }
+ public List<Integer> getHistoryStatus() {
+ return historyStatus;
+ }
+
+ public void setKey(int key) {
+ this.key = key;
+ }
+
+ public String getNoteinfo() {
+ return noteinfo;
+ }
+
+ }
+
+ /**
+ * 鏁版嵁鐘舵�佹灇涓�
+ *
+ */
+ public enum Status {
+
+ /** 鐢ㄦ埛鍚敤绂佺敤鏋氫妇鍊�*/
+ ENABLE(0,"姝e父"),
+ DISABLE(1,"绂佺敤");
+
+ private Integer value;
+ private String des;
+
+
+ Status(Integer value, String des) {
+ this.value = value;
+ this.des = des;
+ }
+
+ public Integer getValue() {
+ return value;
+ }
+
+ public void setValue(Integer value) {
+ this.value = value;
+ }
+
+ public String getDes() {
+ return des;
+ }
+
+ public void setDes(String des) {
+ this.des = des;
+ }
+ }
+
+
+ /**
+ * 鍏宠仈瀵硅薄绫诲瀷 0娲诲姩杞挱鍥� 1娲诲姩璇︽儏鍥� 2闂ㄥ簵璇勪环3璁㈠崟璇勪环 4骞冲彴鍟嗗搧杞挱 5鎺㈠簵澶氬浘 6搴楅摵鏂伴矞浜嬪鍥� 7鍟嗗鍥剧墖澶氬浘
+ */
+ public enum MultiFile{
+ ACTIVITY_ROTATION(0, "娲诲姩杞挱鍥�", "娲诲姩杞挱鍥�"),
+ ACTIVITY_DETAIL(1, "娲诲姩璇︽儏鍥�", "娲诲姩璇︽儏鍥�"),
+ SHOP_APPRAISE(2, "闂ㄥ簵璇勪环", "闂ㄥ簵璇勪环"),
+ ORDER_APPRAISE(3, "璁㈠崟璇勪环", "璁㈠崟璇勪环"),
+ PLATFORM_GOOD_ROTATION(4, "骞冲彴鍟嗗搧杞挱", "骞冲彴鍟嗗搧杞挱"),
+ TANDIAN_PICTURE(5, "鎺㈠簵澶氬浘", "鎺㈠簵澶氬浘"),
+ SHOP_HOT_PICTURE(6, "搴楅摵鏂伴矞浜嬪鍥�", "搴楅摵鏂伴矞浜嬪鍥�"),
+ SHOP_PICTURE(7, "鍟嗗鍥剧墖澶氬浘", "鍟嗗鍥剧墖澶氬浘"),
+ AFTERSALE_APPLY(8, "鐢宠鍞悗琛ュ厖璇存槑闄勪欢", "鐢宠鍞悗琛ュ厖璇存槑闄勪欢"),
+ AFTERSALE_KD(9, "鐢宠鍞悗閭瘎璇存槑闄勪欢", "鐢宠鍞悗閭瘎璇存槑闄勪欢"),
+ ;
+ // 鎴愬憳鍙橀噺
+ private String name;
+ private int key;
+ private String noteinfo;// 鎻忚堪
+
+ // 鏋勯�犳柟娉�
+ MultiFile(int key, String name, String noteinfo) {
+ this.name = name;
+ this.key = key;
+ this.noteinfo = noteinfo;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getName(int index) {
+ for (MultiFile c : MultiFile.values()) {
+ if (c.getKey() == index) {
+ return c.name;
+ }
+ }
+ return null;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getInfo(int index) {
+ for (MultiFile c : MultiFile.values()) {
+ if (c.getKey() == index) {
+ return c.noteinfo;
+ }
+ }
+ return null;
+ }
+
+ // get set 鏂规硶
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public int getKey() {
+ return key;
+ }
+
+ public void setKey(int key) {
+ this.key = key;
+ }
+
+ public String getNoteinfo() {
+ return noteinfo;
+ }
+
+ }
+
+
+
+ /**
+ * 璁㈠崟绠$悊
+ * 鐘舵�� 0鐢宠涓� 1宸叉敮浠� 2宸插彇娑�
+ */
+ public enum ActivitySignupStatus{
+ APPLY_ING(0, "鐢宠涓�", "鐢宠涓�"),
+ PAY_DONE(1, "宸叉敮浠�", "宸叉敮浠�"),
+ CANCEL(2, "宸插彇娑�", "宸插彇娑�"),
+ ;
+ // 鎴愬憳鍙橀噺
+ private String name;
+ private int key;
+ private String noteinfo;// 鎻忚堪
+
+ // 鏋勯�犳柟娉�
+ ActivitySignupStatus(int key, String name, String noteinfo) {
+ this.name = name;
+ this.key = key;
+ this.noteinfo = noteinfo;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getName(int index) {
+ for (ActivitySignupStatus c : ActivitySignupStatus.values()) {
+ if (c.getKey() == index) {
+ return c.name;
+ }
+ }
+ return null;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getInfo(int index) {
+ for (ActivitySignupStatus c : ActivitySignupStatus.values()) {
+ if (c.getKey() == index) {
+ return c.noteinfo;
+ }
+ }
+ return null;
+ }
+
+ // get set 鏂规硶
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public int getKey() {
+ return key;
+ }
+
+ public void setKey(int key) {
+ this.key = key;
+ }
+
+ public String getNoteinfo() {
+ return noteinfo;
+ }
+
+ }
+
+ /**
+ * 鍞悗鐘舵��
+ * 鐘舵�� 0寰呭鐞� 1寰呴偖瀵� 2宸插瘎鍑� 3鍟嗗宸查��娆� 4鍟嗗宸插彂璐�5鍞悗宸插畬鎴�6鍟嗗鎷掔粷 7宸插彇娑�
+ */
+ public enum AftersaleStatus{
+ APPLY_ING(0, "寰呭鐞�", "寰呭鐞�"),
+ WAIT_SEND(1, "寰呴偖瀵�", "寰呴偖瀵�"),
+ SENDED(2, "瀹㈡埛宸插瘎鍑�", "瀹㈡埛宸插瘎鍑�"),
+ REFUND(3, "宸查��娆�", "宸查��娆�"),
+ SHOP_SENDED(4, "骞冲彴宸插彂璐�", "骞冲彴宸插彂璐�"),
+ DONE(5, "鍞悗宸插畬鎴�", "鍞悗宸插畬鎴�"),
+ SHOP_REFUSE(6, "宸叉嫆缁�", "骞冲彴鎷掔粷"),
+ CANCEL(7, "宸插彇娑�", "瀹㈡埛鍙栨秷鍞悗"),
+
+
+ ;
+ // 鎴愬憳鍙橀噺
+ private String name;
+ private int key;
+ private String noteinfo;// 鎻忚堪
+
+ // 鏋勯�犳柟娉�
+ AftersaleStatus(int key, String name, String noteinfo) {
+ this.name = name;
+ this.key = key;
+ this.noteinfo = noteinfo;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getName(int index) {
+ for (AftersaleStatus c : AftersaleStatus.values()) {
+ if (c.getKey() == index) {
+ return c.name;
+ }
+ }
+ return null;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getInfo(int index) {
+ for (AftersaleStatus c : AftersaleStatus.values()) {
+ if (c.getKey() == index) {
+ return c.noteinfo;
+ }
+ }
+ return null;
+ }
+
+ // get set 鏂规硶
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public int getKey() {
+ return key;
+ }
+
+ public void setKey(int key) {
+ this.key = key;
+ }
+
+ public String getNoteinfo() {
+ return noteinfo;
+ }
+
+ }
+ /**
+ * 鍞悗绫诲瀷
+ * 鍞悗绫诲瀷 0閫�娆� 1閫�璐ч��娆� 2鎹㈣揣
+ */
+ public enum AftersaleType{
+ TK(0, "閫�娆�", "閫�娆�"),
+ THTK(1, "閫�璐ч��娆�", "閫�璐ч��娆�"),
+ HH(2, "鎹㈣揣", "鎹㈣揣"),
+ ;
+ // 鎴愬憳鍙橀噺
+ private String name;
+ private int key;
+ private String noteinfo;// 鎻忚堪
+
+ // 鏋勯�犳柟娉�
+ AftersaleType(int key, String name, String noteinfo) {
+ this.name = name;
+ this.key = key;
+ this.noteinfo = noteinfo;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getName(int index) {
+ for (AftersaleType c : AftersaleType.values()) {
+ if (c.getKey() == index) {
+ return c.name;
+ }
+ }
+ return null;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getInfo(int index) {
+ for (AftersaleType c : AftersaleType.values()) {
+ if (c.getKey() == index) {
+ return c.noteinfo;
+ }
+ }
+ return null;
+ }
+
+ // get set 鏂规硶
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public int getKey() {
+ return key;
+ }
+
+ public void setKey(int key) {
+ this.key = key;
+ }
+
+ public String getNoteinfo() {
+ return noteinfo;
+ }
+
+ }
+ /**
+ * 璁㈠崟绠$悊
+ * 鐘舵�� 0寰呮敮浠� 1寰呭彂璐� 2寰呮敹璐� 3浜ゆ槗瀹屾垚 4宸插叧闂� 5閮ㄥ垎鍙戣揣
+ */
+ public enum OrderStatus{
+ WAIT_PAY(0, "寰呮敮浠�", "寰呮敮浠�"),
+ PAY_DONE(1, "寰呭彂璐�", "宸叉敮浠樹唬鍙戣揣"),
+ WAIT_RECEIVE(2, "寰呮敹璐�", "宸插彂璐у緟鏀惰揣"),
+ DONE(3, "浜ゆ槗瀹屾垚", "浜ゆ槗瀹屾垚"),
+ CLOSE(4, "宸插叧闂�", "宸插叧闂�"),
+ PART_DONE(5, "閮ㄥ垎鍙戣揣", "閮ㄥ垎鍙戣揣"),
+
+
+ ;
+ // 鎴愬憳鍙橀噺
+ private String name;
+ private int key;
+ private String noteinfo;// 鎻忚堪
+
+ // 鏋勯�犳柟娉�
+ OrderStatus(int key, String name, String noteinfo) {
+ this.name = name;
+ this.key = key;
+ this.noteinfo = noteinfo;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getName(int index) {
+ for (OrderStatus c : OrderStatus.values()) {
+ if (c.getKey() == index) {
+ return c.name;
+ }
+ }
+ return null;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getInfo(int index) {
+ for (OrderStatus c : OrderStatus.values()) {
+ if (c.getKey() == index) {
+ return c.noteinfo;
+ }
+ }
+ return null;
+ }
+
+ // get set 鏂规硶
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public int getKey() {
+ return key;
+ }
+
+ public void setKey(int key) {
+ this.key = key;
+ }
+
+ public String getNoteinfo() {
+ return noteinfo;
+ }
+
+ }
+
+
+ /**
+ * 璁㈠崟绫诲瀷
+ * 璁㈠崟绫诲瀷 0骞冲彴鍟嗗煄 1鍜栬眴鍟嗗煄 2鍜栧暋璁″垝缂栫爜
+ */
+ public enum OrderType{
+ ADMINPLAT(0, "骞冲彴鍟嗗煄 ", "骞冲彴鍟嗗煄 "),
+ KADOUPLAT(1, "鍜栬眴鍟嗗煄", "鍜栬眴鍟嗗煄"),
+ COFFERPLAN(2, "2鍜栧暋璁″垝缂栫爜", "2鍜栧暋璁″垝缂栫爜")
+
+
+ ;
+ // 鎴愬憳鍙橀噺
+ private String name;
+ private int key;
+ private String noteinfo;// 鎻忚堪
+
+ // 鏋勯�犳柟娉�
+ OrderType(int key, String name, String noteinfo) {
+ this.name = name;
+ this.key = key;
+ this.noteinfo = noteinfo;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getName(int index) {
+ for (OrderType c : OrderType.values()) {
+ if (c.getKey() == index) {
+ return c.name;
+ }
+ }
+ return null;
+ }
+
+ // 鏅�氭柟娉�
+ public static String getInfo(int index) {
+ for (OrderType c : OrderType.values()) {
+ if (c.getKey() == index) {
+ return c.noteinfo;
+ }
+ }
+ return null;
+ }
+
+ // get set 鏂规硶
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public int getKey() {
+ return key;
+ }
+
+ public void setKey(int key) {
+ this.key = key;
+ }
+
+ public String getNoteinfo() {
+ return noteinfo;
+ }
+
+ }
+
+ public enum ShareType{
+// 0娲诲姩1鎺㈠簵2鍜ㄨ3搴楅摵 4鍟嗗搧5鍒嗕韩閭�璇锋捣鎶�
+ SHARE_ACTIVITY_ACTIVITY(0,"娲诲姩","娲诲姩"),
+ SHARE_ACTIVITY_VISITSHOP(1,"鎺㈠簵","鍜ㄨ"),
+ SHARE_ACTIVITY_NEW(2,"鍜ㄨ","鍜ㄨ"),
+ SHARE_SHOP(3,"搴楅摵","搴楅摵" ),
+ SHARE_GOODS(4,"鍟嗗搧","鍟嗗搧"),
+ SHARE_POSTER(5,"鍒嗕韩閭�璇锋捣鎶�","鍒嗕韩閭�璇锋捣鎶�")
+
+ ;
+ private Integer key;
+
+ private String name;
+
+ private String des;
+
+ ShareType(Integer key, String name, String des) {
+ this.key = key;
+ this.name = name;
+ this.des = des;
+ }
+
+ public Integer getKey() {
+ return key;
+ }
+
+ public void setKey(Integer key) {
+ this.key = key;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDes() {
+ return des;
+ }
+
+ public void setDes(String des) {
+ this.des = des;
+ }
+ }
+
+ /**
+ * 鍜栬眴浠诲姟
+ */
+ public enum CoffeeBeanTask{
+
+ SIGN_BOARD(1,"SIGN_BOARD","姣忔棩绛惧埌"),
+ SHARE_INFO(6,"SHARE_INFO","鍒嗕韩璧勮"),
+ SHARE_INVITE_BILL(2,"SHARE_INVITE_BILL","鍒嗕韩閭�璇锋捣鎶�"),
+ INVITE_USER_LOGIN(3,"INVITE_USER_LOGIN","閭�璇锋柊鐢ㄦ埛娉ㄥ唽"),
+ EXCHANGE_GOODS(4,"INVITE_USER_LOGIN","鍏戞崲鍟嗗搧"),
+ EXCHANGE_COUPON(5,"INVITE_USER_LOGIN","鍏戞崲浼樻儬鍒�"),
+ POST_COMMENTS(7,"POST_COMMENTS","鍙戝竷璇勮"),
+ COFFEE_MAP_CONSUME(8,"COFFEE_MAP_CONSUME","鍜栧暋鍦板浘娑堣垂"),
+ ;
+
+ // 0骞冲彴娉ㄥ唽 1绛惧埌 2鍒嗕韩閭�璇� 3閭�璇锋柊鐢ㄦ埛 4鍏戞崲鍟嗗搧 5鍏戞崲浼樻儬鍒�
+ // 鎴愬憳鍙橀噺
+ private Integer key;
+
+ private String name;
+
+ private String des;// 鎻忚堪
+
+ CoffeeBeanTask(Integer key, String name, String des) {
+ this.key = key;
+ this.name = name;
+ this.des = des;
+ }
+
+ public Integer getKey() {
+ return key;
+ }
+
+ public void setKey(Integer key) {
+ this.key = key;
+ }
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getDes() {
+ return des;
+ }
+
+ public void setDes(String des) {
+ this.des = des;
+ }
+ }
+
+
+
+ public enum NoticeType{
+
+// 0璁㈠崟閫氱煡 1绯荤粺娑堟伅 2浜掑姩娑堟伅 3浼樻儬鍒告彁閱� 4瀹樻柟瀹㈡湇 5娲诲姩鎺ㄨ崘 6鎴戠殑鍏虫敞
+
}
--
Gitblit v1.9.3