wangxinhui
2025-11-18 d21995836f488e6e438321e825182176b1f52cfa
ÏîÄ¿´úÂë/WMS/WMSServices/WIDESEA_StockRepository/StockInfoRepository.cs
@@ -37,6 +37,9 @@
            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;
        }
        /// <summary>
        /// èŽ·å–ç”Ÿç®¡å¯ä½¿ç”¨åº“å­˜
        /// </summary>
        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.StockStatus == StockStatusEmun.入库完成.ObjToInt() && x.MaterielWide == width && x.StockOutLength <= 0 && x.StockLength > 0).OrderBy(x => x.CreateDate).ToList();