From 52401d48013a422dab5d45d976f89e01472abc79 Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期五, 03 一月 2025 16:39:53 +0800
Subject: [PATCH] 最新版本541200007

---
 server/visits/dmvisit_service/src/main/java/com/doumee/core/tms/model/TMSContants.java |   52 +++++++++++++++++++++++++++++++++++++---------------
 1 files changed, 37 insertions(+), 15 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
index af560be..61779cf 100644
--- 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
@@ -14,11 +14,20 @@
         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[] getOrderList = new String[]{"/tms/zhyt/getOrderList",  "銆怲MS銆戝悎鍚屽垪琛ㄦ煡璇�"};//TMS鍚堝悓鍒楄〃鏌ヨ鎺ュ彛鍦板潃
+        String[] getTotalAndReportVehicleQty = new String[]{"/tms/zhyt/getTotalAndReportVehicleQty",  "銆怲MS銆戞煡璇�5涓巶鐨勮繍鍔涜祫婧愬埄鐢ㄦ儏鍐点��"};//鏌ヨ5涓巶鐨勮繍鍔涜祫婧愬埄鐢ㄦ儏鍐点��
         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璁㈠崟鐢熷懡鍛ㄦ湡
+        String[] getOrderStatusByContractNumber = new String[]{"/tms/zhyt/getOrderStatusByContractNumber",  "銆怲MS銆戝崟鐢熷懡鍛ㄦ湡"};//3.8璁㈠崟鐢熷懡鍛ㄦ湡
+        String[] getOutQtyAndVehicleQty = new String[]{"/tms/zhyt/getOutQtyAndVehicleQty",  "銆怲MS銆戞寚瀹氭椂闂磋寖鍥村唴绱鍑哄簱閲�"};//3.8鎸囧畾鏃堕棿鑼冨洿鍐呯疮璁″嚭搴撻噺
+        String[] getSevenArrivalStatusAndDetails = new String[]{"/tms/zhyt/getSevenArrivalStatusAndDetails",  "銆怲MS銆戣繎7鏃ュ埌璐ф儏鍐�(鍚槑缁�)"};//3.13杩�7鏃ュ埌璐ф儏鍐�(鍚槑缁�)
+        String[] getNotFinishOrderList = new String[]{"/tms/zhyt/getNotFinishOrderList",  "銆怲MS銆戞湭瀹屾垚璁㈠崟"};//3.13鏈畬鎴愯鍗�
+        String[] getOutboundCapability = new String[]{"/tms/zhyt/getOutboundCapability",  "銆怲MS銆戝嚭搴撹兘鍔涚粺璁�"};//3.14鍑哄簱鑳藉姏缁熻
+        String[] getDriverTaskList = new String[]{"/tms/zhyt/getDriverTaskList",  "銆怲MS銆戞煡璇㈠徃鏈烘墍鏈変唬鍔炰换鍔°��"};//3.15鏌ヨ鍙告満鎵�鏈変唬鍔炰换鍔°��
+        String[] getDriverTaskDetail = new String[]{"/tms/zhyt/getDriverTaskDetail",  "銆怲MS銆戝徃鏈哄緟鍔炰换鍔¤鎯呫��"};//3.16鍙告満寰呭姙浠诲姟璇︽儏銆�
+        String[] driverStart = new String[]{"/tms/zhyt/driverStartAndArrival",  "銆怲MS銆戝徃鏈哄惎杩愩��"};//3.17鍙告満鍚繍
+        String[] driverArrival = new String[]{"/tms/zhyt/driverStartAndArrival",  "銆怲MS銆戝徃鏈哄埌璐с��"};//3.18鍙告満鍒拌揣
     }
 
     public  enum TopStatusLevel {
@@ -30,17 +39,17 @@
          * 宸插埌璐�
          * 宸插叆搴�
          */
-        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()});
+        ddsc(0,"璁㈠崟鐢熸垚",new Integer[]{ChildStatusLevel.create.getOrderStatus()}),
+        ydpzz (1,"杩愬崟閰嶈浇涓�",new Integer[]{ChildStatusLevel.ysdxc.getOrderStatus()
+                ,ChildStatusLevel.ysdcx.getOrderStatus()
+                ,ChildStatusLevel.shtg.getOrderStatus()
+                ,ChildStatusLevel.shwtg.getOrderStatus()}),
+        ckckz (2,"浠撳簱鍑哄簱涓�",new Integer[]{ChildStatusLevel.ddzhddzs.getOrderStatus()
+                ,ChildStatusLevel.sqzyzwc.getOrderStatus()
+                ,ChildStatusLevel.clqddzs.getOrderStatus()}),
+        clysz(3, "杞﹁締杩愯緭涓�",new Integer[]{ChildStatusLevel.clqdapp.getOrderStatus()}),
+        ydh(4,"宸插埌璐�",new Integer[]{ChildStatusLevel.ddzhd.getOrderStatus()}),
+        yrk (5,"宸插叆搴�",new Integer[]{ChildStatusLevel.ddxhd.getOrderStatus()});
 
         // 鎴愬憳鍙橀噺
         private int key;
@@ -53,7 +62,17 @@
             this.chileIndexList = chileIndexList;
             this.name = name;
         }
-
+        public static String getNameByKey(Integer key ) {
+            if(key == null){
+                return null;
+            }
+            for (TopStatusLevel c : TopStatusLevel.values()) {
+                if (c.getKey() == key) {
+                    return c.getName();
+                }
+            }
+            return null;
+        }
         public int getKey() {
             return key;
         }
@@ -137,7 +156,10 @@
             this.orderStatus = orderStatus;
             this.parentIndex = parentIndex;
         }
-        public static Integer getParentIndexByStatus(int orderStatus) {
+        public static Integer getParentIndexByStatus(Integer orderStatus) {
+            if(orderStatus == null){
+                return null;
+            }
             for (ChildStatusLevel c : ChildStatusLevel.values()) {
                 if (c.getOrderStatus() == orderStatus) {
                     return c.parentIndex;

--
Gitblit v1.9.3