wangxinhui
2025-10-17 ce40df5daffae0d17b4e9fa7cb6d677afaa4d66f
项目代码/WMS/WMSServices/WIDESEA_StockRepository/StockInfoRepository.cs
@@ -37,6 +37,11 @@
            List<Dt_StockInfo> stockInfos = Db.Queryable<Dt_StockInfo>().Where(x => locationCodes.Contains(x.LocationCode) && x.MaterielId == materielId && x.MaterielWide==width && x.StockOutLength<=0).OrderBy(x=>x.CreateDate).ToList();
            return stockInfos;
        }
        public List<Dt_StockInfo> GetStockInfos(string materielCode, decimal width, List<string> locationCodes)
        {
            List<Dt_StockInfo> stockInfos = Db.Queryable<Dt_StockInfo>().Where(x => locationCodes.Contains(x.LocationCode) && x.MaterielCode.StartsWith(materielCode) && x.MaterielWide == width && x.StockOutLength <= 0 && x.StockLength <= 0).OrderBy(x => x.CreateDate).ToList();
            return stockInfos;
        }
        public List<Dt_StockInfo> GetStockInfosByIds(List<int> ids)
        {