From ffb5bb3a68ae74ed3a1765baf946336cead3bb0d Mon Sep 17 00:00:00 2001 From: wangxinhui <wangxinhui@hnkhzn.com> Date: 星期一, 23 六月 2025 09:00:37 +0800 Subject: [PATCH] 货位同侧移库,干膜货位大小托分配优化,WCS任务接收优化等 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockInfoService.cs | 31 +------------------------------ 1 files changed, 1 insertions(+), 30 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockInfoService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockInfoService.cs" index e6e6e09..1d75b62 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockInfoService.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_StockService/StockInfoService.cs" @@ -267,36 +267,7 @@ } else { - for (int i = 0; i < stockInfos.Count; i++) - { - Dt_StockInfo stockInfo = stockInfos[i]; - float useableStockQuantity = stockInfo.Details.Where(x => x.MaterielCode == materielCode).Sum(x => x.StockQuantity - x.OutboundQuantity); - if (useableStockQuantity < needQuantity) - { - stockInfo.Details.ForEach(x => x.OutboundQuantity = x.StockQuantity); - needQuantity -= useableStockQuantity; - } - else - { - stockInfo.Details.ForEach(x => - { - if (x.StockQuantity > x.OutboundQuantity && x.MaterielCode == materielCode) - { - if (x.StockQuantity - x.OutboundQuantity >= needQuantity) - { - x.OutboundQuantity += needQuantity; - needQuantity = 0; - } - else - { - needQuantity -= (x.StockQuantity - x.OutboundQuantity); - x.OutboundQuantity = x.StockQuantity; - } - } - }); - } - outStocks.Add(stockInfo); - } + throw new Exception("搴撳瓨涓嶈冻"); } residueQuantity = needQuantity; return outStocks; -- Gitblit v1.9.3