From 7db419acdd2c02950b67c081dd2d7f61fdb2cb89 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期一, 30 三月 2026 16:09:07 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/RuiShiGe/LingPaoCheShenKu
---
项目代码/WMS/WMSServer/WIDESEA_StorageBasicServices/Stock/VV_StockInfoService.cs | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageBasicServices/Stock/VV_StockInfoService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageBasicServices/Stock/VV_StockInfoService.cs"
index 2396fab..7c27119 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageBasicServices/Stock/VV_StockInfoService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServer/WIDESEA_StorageBasicServices/Stock/VV_StockInfoService.cs"
@@ -6,15 +6,18 @@
using System.Drawing.Printing;
using System.Linq.Expressions;
using WIDESEA_Core;
+using WIDESEA_IRecordService;
namespace WIDESEA_StorageBasicService;
public class VV_StockInfoService : ServiceBase<VV_StockInfo, IVV_StockInfoRepository>, IVV_StockInfoService
{
private readonly IDt_PalletStockInfoRepository _repository;
- public VV_StockInfoService(IVV_StockInfoRepository BaseDal, IDt_PalletStockInfoRepository repository) : base(BaseDal)
+ private readonly IStockQuantityChangeRecordService _stockQuantityChangeRecord;
+ public VV_StockInfoService(IVV_StockInfoRepository BaseDal, IDt_PalletStockInfoRepository repository, IStockQuantityChangeRecordService stockQuantityChangeRecord) : base(BaseDal)
{
_repository = repository;
+ _stockQuantityChangeRecord = stockQuantityChangeRecord;
}
public WebResponseContent stockLock(object[] keys)
@@ -25,8 +28,10 @@
foreach (var item in keys)
{
var stock = _repository.QueryFirst(x => x.Id == Convert.ToInt32(item));
- stock.StockStatus= 1;
- _repository.UpdateData(stock);
+ if (stock.LockOrder != 1){
+ stock.StockStatus = 1;
+ _repository.UpdateData(stock);
+ }
}
return content.OK("閿佸畾鎴愬姛!");
--
Gitblit v1.9.3