From 4de417b106a062452f5ac86e626e7e225b753eab Mon Sep 17 00:00:00 2001
From: zhaowc <526854230@qq.com>
Date: 星期二, 23 九月 2025 08:03:11 +0800
Subject: [PATCH] 优化问题

---
 Wms/WMS.BLL/SysServer/PalletsServer.cs |   22 ++--------------------
 1 files changed, 2 insertions(+), 20 deletions(-)

diff --git a/Wms/WMS.BLL/SysServer/PalletsServer.cs b/Wms/WMS.BLL/SysServer/PalletsServer.cs
index dc5f08f..f4e202a 100644
--- a/Wms/WMS.BLL/SysServer/PalletsServer.cs
+++ b/Wms/WMS.BLL/SysServer/PalletsServer.cs
@@ -159,26 +159,7 @@
                 {
                     throw new Exception("鏂版坊鍔犵殑妗跺彧鑳界粦瀹氬噣妗跺尯");
                 }
-                //if (!string.IsNullOrEmpty(deviceCode))
-                //{
-                //    var areaInfo = db.Queryable<SysStorageArea>().First(w => w.IsDel == "0" && w.DeviceCode.Contains(deviceCode));
-                //    if (areaInfo == null)
-                //    {
-                //        throw new Exception("鏈煡鍒拌澶囨墍灞炲尯鍩熶俊鎭�");
-                //    }
-                //    //125璁惧鏄帴鏂欏拰娣锋枡涓�浣撴満
-                //    if (deviceCode != "125")
-                //    {
-                //        if (!areaInfo.AreaName.Contains("鎺ユ枡璁惧"))
-                //        {
-                //            throw new Exception("鍙兘缁戝畾鎺ユ枡璁惧");
-                //        }
-                //        if (areaInfo.WareHouseNo != "M03")
-                //        {
-                //            throw new Exception("鍙湁澶у崟浣撹溅闂存墠鑳界粦瀹氳澶�");
-                //        }
-                //    }                    
-                //}
+               
                 if (!string.IsNullOrEmpty(deviceCode))
                 {
                     switch (deviceCode)
@@ -254,6 +235,7 @@
 
                 //鏇存柊鍌ㄤ綅鐘舵��
                 locatModel.Status = "1";//鏈夌墿鍝�
+                locatModel.UpdateTime = DateTime.Now;
                 db.Updateable(locatModel).ExecuteCommand();
 
                 //涓嬪彂AGV缁戝畾杞藉叿鎺ュ彛

--
Gitblit v1.8.0