dengjunjie
2025-04-26 18d2f40bbf40469b033de6f07ca8a8e3bc191132
ÏîÄ¿´úÂë/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/Service/OutboundOrderDetailService.cs
@@ -132,7 +132,7 @@
        }
        public (List<Dt_StockInfo>, List<Dt_OutStockLockInfo>, List<Dt_LocationInfo>) AssignStockOutbound(Dt_OutboundOrder outboundOrder, List<StockSelectViewDTO> stockSelectViews)
        {
            var PalletCodes= stockSelectViews.First().PalletCode.Split(',');
            var PalletCodes = string.Join("", stockSelectViews.Select(x => x.PalletCode).ToList());
            List<Dt_StockInfo> outStocks = _stockService.StockInfoService.Repository.QueryData(x => PalletCodes.Contains(x.PalletCode));
            outStocks.ForEach(x =>
@@ -140,7 +140,12 @@
                x.StockStatus = StockStatusEmun.出库中.ObjToInt();
            });
            List<Dt_OutStockLockInfo> outStockLockInfos = _outStockLockInfoService.GetOutStockLockInfo(outboundOrder, outboundOrder.Details.First(), outStocks, BatchNo: stockSelectViews.First().BatchNo);
            List<Dt_OutStockLockInfo> outStockLockInfos = new List<Dt_OutStockLockInfo>();
            foreach (var item in stockSelectViews)
            {
                var outstocks = outStocks.Where(x => item.PalletCode.Contains(x.PalletCode)).ToList();
                outStockLockInfos.AddRange(_outStockLockInfoService.GetOutStockLockInfo(outboundOrder, outboundOrder.Details.First(), outstocks, BatchNo: item.BatchNo));
            }
            List<Dt_LocationInfo> locationInfos = _basicService.LocationInfoService.Repository.GetLocationInfos(stockSelectViews.Select(x => x.LocationCode).ToList());
            locationInfos.ForEach(x =>