From 0c51ea5f39e11279ccebbad241cbb09aa74ee1a2 Mon Sep 17 00:00:00 2001 From: liukangdong <898885815@qq.com> Date: 星期五, 13 十二月 2024 20:03:08 +0800 Subject: [PATCH] Merge branch 'master' of http://139.186.142.91:10010/r/productDev/dmvisit --- server/visits/dmvisit_service/src/main/java/com/doumee/core/tms/model/TMSContants.java | 197 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 197 insertions(+), 0 deletions(-) diff --git a/server/visits/dmvisit_service/src/main/java/com/doumee/core/tms/model/TMSContants.java b/server/visits/dmvisit_service/src/main/java/com/doumee/core/tms/model/TMSContants.java new file mode 100644 index 0000000..af560be --- /dev/null +++ b/server/visits/dmvisit_service/src/main/java/com/doumee/core/tms/model/TMSContants.java @@ -0,0 +1,197 @@ +package com.doumee.core.tms.model; + +import com.doumee.core.utils.Constants; +import org.apache.commons.lang3.StringUtils; + +import java.util.List; + +public class TMSContants { + + public interface InterfacePath { + String[] getSevenArrivalStatus = new String[]{"/tms/zhyt/getSevenArrivalStatus", "銆怲MS銆戣繎7鏃ュ埌璐ф儏鍐�"};//TMS杩�7鏃ュ埌璐ф儏鍐垫帴鍙e湴鍧� + String[] getCurrentTransportationTask = new String[]{ "銆怲MS銆�/zhyt/getCurrentTransportationTask", "銆怲MS銆戝綋鍓嶈繍杈撲换鍔�"};//TMS褰撳墠杩愯緭浠诲姟鎺ュ彛鍦板潃 + String[] getDistributionOfDeliveryLocations = new String[]{"/tms/zhyt/getDistributionOfDeliveryLocations", "銆怲MS銆戝叏鍥藉埌璐у湴鍒嗗竷鏌ヨ鏌ヨ"};//TMS鍏ㄥ浗鍒拌揣鍦板垎甯冩煡璇㈡煡璇㈡帴鍙e湴鍧� + String[] getRealTimeInventory = new String[]{"/tms/zhyt/getRealTimeInventory", "銆怲MS銆戝疄鏃跺簱瀛樻煡璇�"};//TMS瀹炴椂搴撳瓨鏌ヨ鎺ュ彛鍦板潃 + String[] getInboundOutbound = new String[]{"/tms/zhyt/getInboundOutbound", "銆怲MS銆戝嚭鍏ュ簱璁板綍鏌ヨ"};//TMS鍑哄叆搴撹褰曟煡璇㈡帴鍙e湴鍧� + String[] getIntransitDetails = new String[]{"/tms/zhyt/getIntransitDetails", "銆怲MS銆戝湪閫旀槑缁嗗垪琛�"};//TMS鍦ㄩ�旀槑缁嗗垪琛ㄦ帴鍙e湴鍧� + String[] getOrderList = new String[]{"/tms/zhyt/getIntransitDetails", "銆怲MS銆戝悎鍚屽垪琛ㄦ煡璇�"};//TMS鍚堝悓鍒楄〃鏌ヨ鎺ュ彛鍦板潃 + String[] getElecByContractNumberList = new String[]{"/tms/zhyt/getElecByContractNumberList", "銆怲MS銆戝悎鍚屼笂閿佺姸鎬�"};//TMS鍚堝悓涓婇攣鐘舵�佹帴鍙e湴鍧� + String[] getOrderDetailByContractNumber = new String[]{"/tms/zhyt/getOrderDetailByContractNumber", "銆怲MS銆戝悎鍚岃鎯�"};//TMS鍚堝悓璇︽儏鎺ュ彛鍦板潃 + String[] getGis = new String[]{"/tms/zhyt/getGis", "銆怲MS銆戞牴鎹繍杈撳崟鍙锋煡璇is杞�"};//TMS鏍规嵁杩愯緭鍗曞彿鏌ヨgis杞ㄦ帴鍙e湴鍧� + String[] getOrderStatusByContractNumber = new String[]{";//", "銆怲MS銆戝崟鐢熷懡鍛ㄦ湡"};//3.8璁㈠崟鐢熷懡鍛ㄦ湡 + } + + public enum TopStatusLevel { + /** + * 璁㈠崟鐢熸垚 + * 杩愬崟閰嶈浇涓� + * 浠撳簱鍑哄簱涓� + * 杞﹁締杩愯緭涓� + * 宸插埌璐� + * 宸插叆搴� + */ + ddsc(0,"璁㈠崟鐢熸垚",new Integer[]{ChildStatusLevel.create.getKey()}), + ydpzz (1,"杩愬崟閰嶈浇涓�",new Integer[]{ChildStatusLevel.ysdxc.getKey() + ,ChildStatusLevel.ysdcx.getKey() + ,ChildStatusLevel.shtg.getKey() + ,ChildStatusLevel.shwtg.getKey()}), + ckckz (2,"浠撳簱鍑哄簱涓�",new Integer[]{ChildStatusLevel.ddzhddzs.getKey() + ,ChildStatusLevel.sqzyzwc.getKey() + ,ChildStatusLevel.clqddzs.getKey()}), + clysz(3, "杞﹁締杩愯緭涓�",new Integer[]{ChildStatusLevel.clqdapp.getKey()}), + ydh(4,"宸插埌璐�",new Integer[]{ChildStatusLevel.ddzhd.getKey()}), + yrk (5,"宸插叆搴�",new Integer[]{ChildStatusLevel.ddxhd.getKey()}); + + // 鎴愬憳鍙橀噺 + private int key; + private Integer[] chileIndexList ; + private String name; + + // 鏋勯�犳柟娉� + TopStatusLevel(int key, String name, Integer[] chileIndexList) { + this.key = key; + this.chileIndexList = chileIndexList; + this.name = name; + } + + public int getKey() { + return key; + } + + public void setKey(int key) { + this.key = key; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Integer[] getChileIndexList() { + return chileIndexList; + } + + public void setChileIndexList(Integer[] chileIndexList) { + this.chileIndexList = chileIndexList; + } + } + public interface StatusCode{ + /** + * 1-鍑嗚繍璇� + * 2-鐢靛瓙閿佹苯杩� + * 3-鐢靛瓙閿侀潪姹借繍 + * 4-GIS + * 5-APP + * 6-浜哄伐鏇存柊 + */ + int zyz =1; + int dzsqy =2; + int dzsfqy =3; + int gis =4; + int app =5; + int rggx =6; + } + public enum ChildStatusLevel { + /** + 璁㈠崟鐢熸垚锛堝彂璐т粨搴撹仈绯荤數璇濓細0551-63451234锛� 0 璁㈠崟鐢熸垚锛堝彂璐т粨搴撹仈绯荤數璇濓細0551-63451234锛� + + 杩愯緭鍗曞舰鎴� 1 杩愯緭鍗曞舰鎴� + 杩愯緭鍗曟挙閿�锛堝師鍥狅細XXX锛� -2 杩愯緭鍗曟挙閿�锛堝師鍥狅細XXX锛� + 杩愯緭鍗曞鏍告湭閫氳繃 -1 杩愯緭鍗曞鏍告湭閫氳繃 + 杩愯緭鍗曞鏍搁�氳繃 2 杩愯緭鍗曞鏍搁�氳繃 + 杩愯緭鍗曠‘璁� 杩愯緭鍗曠‘璁� + 鍒拌揪瑁呰揣鍦�-鐢靛瓙閿佹苯杩� 3 杞﹁締宸插埌杈捐璐у湴 + 杞﹁締鍚繍-鐢靛瓙閿佹苯杩� 4 杞﹁締瑁呰揣瀹屾垚锛岀數瀛愰攣宸蹭笂閿� + 杞﹁締鍚繍-APP 4 杞﹁締杩愯緭涓� + 鍒拌揪鍗歌揣鍦�-APP 5 杞﹁締宸插埌杈惧嵏璐у湴 + 鍒拌揪鍗歌揣鍦�-鐢靛瓙閿佹苯杩� 5 鐢靛瓙閿佸凡瑙i攣锛岃繍杈撲换鍔″凡瀹屾垚 + */ + create(0,0, 0,"璁㈠崟鐢熸垚",null), + ysdxc(1,1,1, "杩愯緭鍗曞舰鎴�",null), + ysdcx(2, -2,1,"杩愯緭鍗曟挙閿�",null ), + shtg(3,-1, 1,"杩愯緭鍗曞鏍告湭閫氳繃",null ), + shwtg(4, 2,1,"杩愯緭鍗曞鏍搁�氳繃",null), + sqzyzwc(5,6, 1,"鐢宠鍑嗚繍璇佸畬鎴�","杞﹁締鍑嗚繍璇佺敵璇峰畬鎴�" ), + ddzhddzs(6,3,2,"鍒拌揪瑁呰揣鍦�-鐢靛瓙閿佹苯杩�","杞﹁締宸插埌杈捐璐у湴" ), + clqddzs(7, 4,2,"杞﹁締鍚繍-鐢靛瓙閿佹苯杩�","杞﹁締瑁呰揣瀹屾垚锛岀數瀛愰攣宸蹭笂閿�" ), + clqdapp(8, 7,3,"杞﹁締鍚繍-APP","杞﹁締杩愯緭涓�" ), + ddzhd(9, 8,4,"鍒拌揪鍗歌揣鍦�-APP","杞﹁締宸插埌杈惧嵏璐у湴" ), + ddxhd(10, 5,5,"鍒拌揪鍗歌揣鍦�-鐢靛瓙閿佹苯杩�","鐢靛瓙閿佸凡瑙i攣锛岃繍杈撲换鍔″凡瀹屾垚" ), + ; + + // 鎴愬憳鍙橀噺 + private Integer key; + private Integer orderStatus; + private Integer parentIndex; + private String name; + private String info; + + // 鏋勯�犳柟娉� + ChildStatusLevel(Integer key,Integer orderStatus,Integer parentIndex, String name,String info ) { + this.key = key; + this.info = info; + this.name = name; + this.orderStatus = orderStatus; + this.parentIndex = parentIndex; + } + public static Integer getParentIndexByStatus(int orderStatus) { + for (ChildStatusLevel c : ChildStatusLevel.values()) { + if (c.getOrderStatus() == orderStatus) { + return c.parentIndex; + } + } + return null; + } + public static String getInfo(int orderStatus,String defualt) { + for (ChildStatusLevel c : ChildStatusLevel.values()) { + if (c.getOrderStatus() == orderStatus) { + return StringUtils.defaultString(c.getInfo(),StringUtils.defaultString(defualt,c.getName())); + } + } + return null; + } + + public int getKey() { + return key; + } + + public void setKey(int key) { + this.key = key; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getInfo() { + return info; + } + + public void setInfo(String info) { + this.info = info; + } + + public int getOrderStatus() { + return orderStatus; + } + + public void setOrderStatus(int orderStatus) { + this.orderStatus = orderStatus; + } + + public int getParentIndex() { + return parentIndex; + } + + public void setParentIndex(int parentIndex) { + this.parentIndex = parentIndex; + } + } +} -- Gitblit v1.9.3