helongyang
昨天 69c258359052738b4c60dcabc85f09e4debf2c94
´úÂë¹ÜÀí/WMS/WIDESEA_WMSServer/WIDESEA_OutboundService/ErpProScrapSheetDetailService.cs
@@ -38,7 +38,7 @@
        public IBasicService _basicService;
        public IRecordService _recordService;
        public ErpProScrapSheetDetailService(IErpProScrapSheetDetailRepository BaseDal, IUnitOfWorkManage unitOfWorkManage, IErpProScrapSheetRepository proScrapSheetRepository, IInvokeERPService invokeERPService, IStockRepository stockRepository, IStockService stockService, IOutProStockInfoService outProStockInfoService, IRecordService recordService) : base(BaseDal)
        public ErpProScrapSheetDetailService(IErpProScrapSheetDetailRepository BaseDal, IUnitOfWorkManage unitOfWorkManage, IErpProScrapSheetRepository proScrapSheetRepository, IInvokeERPService invokeERPService, IStockRepository stockRepository, IStockService stockService, IOutProStockInfoService outProStockInfoService, IRecordService recordService, IBasicService basicService) : base(BaseDal)
        {
            _unitOfWorkManage = unitOfWorkManage;
            _proScrapSheetRepository = proScrapSheetRepository;
@@ -47,6 +47,7 @@
            _stockService = stockService;
            _outProStockInfoService = outProStockInfoService;
            _recordService = recordService;
            _basicService = basicService;
        }
        //获取对应单号的报废明细
        public List<Dt_ErpProScrapSheetDetail> GetByDetails(string scrapNo)
@@ -339,10 +340,13 @@
                    }
                    //}
                }
                List<string> locationArr = outStocks.Select(x => x.LocationCode).ToList();
                locationInfos.AddRange(_basicService.LocationInfoService.Repository.GetLocationInfos(locationArr));
                List<string> locationCodes = outStocks.Select(x => x.LocationCode).ToList();
                List<Dt_LocationInfo> locationInfos1 = _basicService.LocationInfoService.Repository.GetLocationInfos(locationCodes);
                if (locationInfos1 == null)
                {
                    throw new Exception($"{locationCodes}货位查询为空,请检查");
                }
                locationInfos.AddRange(locationInfos1);
            }
            return (outStocks, proOutOrderDetails, outProStockInfos, locationInfos);
        }