From 969aafa8bd335025da4caf5939a1626bad4f4236 Mon Sep 17 00:00:00 2001
From: chengsc <11752@DESKTOP-DS49RCP>
Date: 星期四, 19 六月 2025 16:54:03 +0800
Subject: [PATCH] Merge branch 'csc'

---
 Admin.NET/WCS.Application/Util/FourWayCarUtil.cs |   17 +++++++++++++++--
 1 files changed, 15 insertions(+), 2 deletions(-)

diff --git a/Admin.NET/WCS.Application/Util/FourWayCarUtil.cs b/Admin.NET/WCS.Application/Util/FourWayCarUtil.cs
index 010fb9c..0a8fe55 100644
--- a/Admin.NET/WCS.Application/Util/FourWayCarUtil.cs
+++ b/Admin.NET/WCS.Application/Util/FourWayCarUtil.cs
@@ -26,6 +26,10 @@
     /// <returns></returns>
     public static List<CarModel> GetCarPathUp(List<CarModel> list, int moveType)
     {
+        if (list == null)
+        {
+            return null;
+        }
         for (int i = 0; i < list.Count; i++)
         {
             if (i >= 0 && i < list.Count - 1)
@@ -163,6 +167,15 @@
 
     }
 
+    /// <summary>
+    /// 
+    /// </summary>
+    /// <param name="data">褰撳墠浠诲姟鎬昏矾寰�</param>
+    /// <param name="kXCarList">鎵�鏈夊皬杞�</param>
+    /// <param name="assignCar">褰撳墠鍒嗛厤灏忚溅</param>
+    /// <param name="waitTask">褰撳墠鎬讳换鍔�</param>
+    /// <param name="moveType">0鍘诲彇璐т换鍔�  1鍘绘斁璐�</param>
+    /// <returns></returns>
     public static bool AddCarTask(List<CarModel> data, List<CarInfo> kXCarList, CarInfo assignCar, WcsTask waitTask,int moveType)
     {
         #region 鑾峰彇閫傚悎鎵ц褰撳墠浠诲姟鐨勫皬杞� 鐢熸垚璺緞锛堥渶鑰冭檻灏忚溅闃婚樆鎸★級
@@ -325,7 +338,7 @@
             var lastPath = lastPathList[lastPathList.Length - 2];
             var lastPath2 = lastPath.Substring(0,6);
 
-            //濡傛灉姝ゆ鍒嗛厤璺緞鍖呭惈閱夎垶涓渶缁堣妭鐐硅矾寰勶紝娣诲姞绉昏蛋灏忚溅
+            //濡傛灉姝ゆ鍒嗛厤璺緞鍖呭惈浠诲姟涓渶缁堣妭鐐硅矾寰勶紝娣诲姞绉昏蛋灏忚溅
             if (path.Contains(lastPath2))
             {
                 
@@ -491,7 +504,7 @@
 
                 if (current.Equals(end))
                 {
-                    Log.Error(ReconstructPath(cameFrom, current).ToString());
+                    Log.Error("灏忚溅璺緞鍒嗛厤锛�" +ReconstructPath(cameFrom, current).ToString());
                     return ReconstructPath(cameFrom, current);
                 }
 

--
Gitblit v1.8.0