From 4a1765ea61fb8706bddbf90b91b310e2ce0e9f7d Mon Sep 17 00:00:00 2001
From: yangpeixing <yangpeixing@hnkhzn.com>
Date: 星期一, 02 三月 2026 14:59:48 +0800
Subject: [PATCH] 1

---
 WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/LocationInfoService.cs |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/LocationInfoService.cs b/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/LocationInfoService.cs
index 0ae970f..1b5d3d8 100644
--- a/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/LocationInfoService.cs
+++ b/WMS/WIDESEA_WMSServer/WIDESEA_BasicService/Base/LocationInfoService.cs
@@ -42,7 +42,11 @@
 
         public override WebResponseContent UpdateData(SaveModel saveModel)
         {
-            return base.UpdateData(saveModel);
+            var id = saveModel.MainData["id"].ObjToInt();
+            var locationStatus = saveModel.MainData["locationStatus"].ObjToInt();
+            Dt_LocationInfo locationInfo = BaseDal.QueryFirst(x => x.Id == id);
+            locationInfo.LocationStatus = locationStatus;
+            return base.UpdateData(locationInfo);
         }
 
         public override WebResponseContent DeleteData(object[] keys)
@@ -327,7 +331,7 @@
                             .Where(y => y.LocationCode == x.LocationCode && y.OrderStatus == InOrderStatusEnum.鏈紑濮�.ObjToInt())
                             .First();
 
-                        if (returnOrder == null)
+                        if (returnOrder != null)
                         {
                             continue;
                         }

--
Gitblit v1.9.3