From 6513c35280f2283ff53b36bdc0c9d83aba475f8d Mon Sep 17 00:00:00 2001 From: Zhang-Hong-Lin <a3219986988@163.com> Date: 星期五, 07 三月 2025 19:54:24 +0800 Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/ZhuZhouYouRuiKe/YangJiPingKu --- 项目代码/WCS/WIDESEAWCS_Server/WIDESEAWCS_WMSPart/LocationInfoService.cs | 22 +++++++++++++++++++++- 1 files changed, 21 insertions(+), 1 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 70273e5..f1d957e 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" @@ -74,7 +74,7 @@ List<Dt_LocationInfo> locationInfos = new List<Dt_LocationInfo>(); for (int i = 1; i < 38; i++) { - for (int a = 1; a < 7; a++) + for (int a = 1; a < 12; a++) { for (int g = 1; g < 3; g++) { @@ -134,6 +134,26 @@ } 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