From b2b779905bc8a71b52d0e14f91652309d9279878 Mon Sep 17 00:00:00 2001
From: wangxinhui <wangxinhui@hnkhzn.com>
Date: 星期二, 03 二月 2026 14:37:38 +0800
Subject: [PATCH] 一堆逻辑修改

---
 项目代码/WMS/WMSServices/WIDESEA_StockService/StockInfoService.cs |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_StockService/StockInfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_StockService/StockInfoService.cs"
index c5458b1..444f52a 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_StockService/StockInfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_StockService/StockInfoService.cs"
@@ -206,6 +206,14 @@
 
             return BaseDal.GetStockInfos(materielCode, width, locationCodes);
         }
+        /// <summary>
+        /// 鑾峰彇鑰佸巶缂撳瓨鍙敤搴撳瓨
+        /// </summary>
+        /// <returns></returns>
+        public List<Dt_StockInfo> GetUseOldCacheStocks(string materielCode, decimal width)
+        {
+            return Db.Queryable<Dt_StockInfo>().Where(x => x.MaterielCode.StartsWith(materielCode) && x.StockStatus == StockStatusEmun.鑰佸巶閫�鏂欐殏瀛�.ObjToInt() && x.MaterielWide == width && x.StockOutLength <= 0 && x.StockLength > 0).OrderBy(x => x.CreateDate).ToList();
+        }
         public List<Dt_StockInfo> GetUseableStocks(string materielCode, int warehoseId)
         {
             List<string> locationCodes = _basicRepository.LocationInfoRepository.GetCanOutLocationCodes(warehoseId);

--
Gitblit v1.9.3