From 7f34e14e8eefc2eb178eb2786e5989fe53b207bb Mon Sep 17 00:00:00 2001
From: pengmn <pmn@HanInfo>
Date: 星期一, 07 七月 2025 17:05:14 +0800
Subject: [PATCH] 1

---
 HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/dispatch/GZRobot.cs |   28 ++++++++++++++++++++++++++--
 1 files changed, 26 insertions(+), 2 deletions(-)

diff --git a/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/dispatch/GZRobot.cs b/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/dispatch/GZRobot.cs
index 5ea9fbd..46a8c27 100644
--- a/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/dispatch/GZRobot.cs
+++ b/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/dispatch/GZRobot.cs
@@ -217,7 +217,7 @@
             GzResult result = new GzResult();
             try
             {
-                var wcsTask = WCSHelper.GetTaskName(model.orderName);
+                var wcsTask = WCSHelper.GetTask(model.orderName);
                 if (wcsTask == null)
                 {
                     result.resultCode = 1;
@@ -228,7 +228,8 @@
                 {
                     //1琛ㄧず鏄惁鐢宠缁曡矾
                     var endLoc = LocationHelper.GetLoc(wcsTask.S_END_LOC);
-                    if (endLoc.N_CURRENT_NUM == 0 && endLoc.S_LOCK_STATE == "鏃�)
+					LogHelper.Info($"applyReroute 鐢宠鏄惁缁曡矾璐т綅鍙傛暟{JsonConvert.SerializeObject(endLoc)}");
+                    if (endLoc.N_CURRENT_NUM == 0&& endLoc.S_LOCK_STATE=="鍏ュ簱閿�)                    
                     {
                         result.resultCode = 0;
                         result.success = true;
@@ -274,6 +275,29 @@
             
         }
 
+        /// <summary>
+        /// 浜ょ鐢宠
+        /// </summary>
+        /// <param name="model"></param>
+        /// <returns></returns>
+        public static GzResult agvTraffic(orderTraffic model)
+        {
+            GzResult result = new GzResult();
+            try
+            {
+                result.resultCode = 0;
+                result.msg = "success";
+                return result;
+            }
+            catch (Exception ex)
+            {
+                result.resultCode = 1;
+                result.success = false;
+                result.msg = $"浜ょ鐢宠鍑虹幇閿欒{JsonConvert.SerializeObject(ex.Message)}";
+                return result;
+            }
+
+        }
 
         ///// <summary>
         ///// 璋冪敤灏忕背鐘舵�鍥炴姤鎺ュ彛

--
Gitblit v1.9.1