From ea3b8223434673ca6d911bfcd6cdcafa773cb5f0 Mon Sep 17 00:00:00 2001
From: qinchulong <qinchulong@hnkhzn.com>
Date: 星期一, 03 三月 2025 22:01:01 +0800
Subject: [PATCH] 更新入库逻辑

---
 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_WMSPart/LocationInfoService.cs |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_WMSPart/LocationInfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_WMSPart/LocationInfoService.cs"
index 6a6a56d..422dc1b 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_WMSPart/LocationInfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WCS/WIDESEAWCS_Server/WIDESEAWCS_WMSPart/LocationInfoService.cs"
@@ -124,6 +124,24 @@
                     }
                     location = locations[0];
                 }
+                if (location!=null)
+                {
+                    //鏌ユ壘鐩搁偦鐨勫簱浣�
+                    Dt_LocationInfo Towlocation = new Dt_LocationInfo();
+                    var Onelocation = BaseDal.QueryFirst(v => v.LocationCode == location.LocationCode);
+                    if (Onelocation.Depth == 1)
+                    {
+                        Towlocation = BaseDal.QueryFirst(v => v.Row == Onelocation.Row && v.Column == Onelocation.Column && v.Depth == 2);
+                    }
+                    else
+                    {
+                        Towlocation = BaseDal.QueryFirst(v => v.Row == Onelocation.Row && v.Column == Onelocation.Column && v.Depth == 1);
+                    }
+                    location.LocationStatus = (int)LocationStatusEnum.Lock;
+                    Towlocation.LocationStatus = (int)LocationStatusEnum.Lock;
+                    BaseDal.UpdateData(location);
+                    BaseDal.UpdateData(Towlocation);
+                }
             }
             catch (Exception ex)
             {

--
Gitblit v1.9.3