From c69b6892e9e004db9cf5d0edc69bbd2fcc1d83db Mon Sep 17 00:00:00 2001
From: yangpeixing <yangpeixing@hnkhzn.com>
Date: 星期一, 15 十二月 2025 16:41:44 +0800
Subject: [PATCH] 1

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Stock/StockInfoService.cs |   34 ++++++++++++++++++++++++++++++++++
 1 files changed, 34 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Stock/StockInfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Stock/StockInfoService.cs"
index ea87b9d..d2f43f1 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Stock/StockInfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Stock/StockInfoService.cs"
@@ -34,6 +34,7 @@
 
 public class StockInfoService : ServiceBase<DtStockInfo, IStockInfoRepository>, IStockInfoService
 {
+    private readonly LogFactory LogFactory = new LogFactory();
     private readonly ILocationStatusChangeRecordRepository _locationStatusChangeRecordRepository;
     private readonly IDt_InboundOrderRepository _inboundOrderRepository;
     private readonly IDt_InboundOrderService _inboundOrderService;
@@ -607,5 +608,38 @@
         }
     }
 
+    /// <summary>
+    /// 鐗规畩鍑哄簱
+    /// </summary>
+    /// <param name="details"></param>
+    /// <returns></returns>
+    /// <exception cref="NotImplementedException"></exception>
+
+    public WebResponseContent UpdateDataStockDetail(List<DtStockInfoDetail> details)
+    {
+        try
+        {
+            List<DtStockInfoDetail> dtStockInfoDetails = new List<DtStockInfoDetail>();
+           
+            foreach (var item in details)
+            {
+                DtStockInfoDetail dtStockInfoDetail = new DtStockInfoDetail();
+                dtStockInfoDetail = _stockInfoDetailRepository.QueryFirst(it => it.Id == item.Id);
+                dtStockInfoDetails.Add(dtStockInfoDetail);
+            }
+            LogFactory.GetLog("鐗规畩浠诲姟").InfoFormat(true, "鐗规畩浠诲姟鍓�", JsonConvert.SerializeObject(dtStockInfoDetails));
+            if (_stockInfoDetailRepository.UpdateData(details))
+            {
+               //璁板綍鏃ュ織
+               LogFactory.GetLog("鐗规畩浠诲姟").InfoFormat(true, "鐗规畩浠诲姟鍚�", JsonConvert.SerializeObject(details));
+            }
+        }
+        catch(Exception ex)
+        {
+            return WebResponseContent.Instance.Error("鍑哄簱澶辫触");
+        }
+        return WebResponseContent.Instance.OK("鍑哄簱鎴愬姛");
+    }
+
     #endregion
 }
\ No newline at end of file

--
Gitblit v1.9.3