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 | 40 +++++++++++++++++++++++++++++++++++++---
1 files changed, 37 insertions(+), 3 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 6f50975..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;
@@ -124,11 +125,11 @@
}
else if (item.Name.Contains("materielCode"))
{
- materielCode = x => x.StockInfoDetails.Any(d => d.MaterielCode == item.Value);
+ materielCode = x => x.StockInfoDetails.Any(d => d.MaterielCode.Contains(item.Value));
}
else if (item.Name.Contains("materielName"))
{
- materielName = x => x.StockInfoDetails.Any(d => d.MaterielName == item.Value);
+ materielName = x => x.StockInfoDetails.Any(d => d.MaterielName.Contains(item.Value));
}
}
//.IncludesAllFirstLayer()
@@ -201,7 +202,7 @@
}
locationsNew.Add(item);
}
- else if (item.AreaId == 2)
+ else if (item.AreaId == 2 || item.AreaId == 7)
{
var locationLateral = _locationRepository.QueryData(x => x.Row == item.Row && x.Column > item.Column && x.Remark == item.Remark);
@@ -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