From e9d775870b671943a8ccb7b051c41091641e2b2b Mon Sep 17 00:00:00 2001 From: tongfei <244188119@qq.com> Date: Wed, 22 Nov 2023 10:04:43 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=B1=E5=BA=93=E5=AD=98=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/WMS.Web.Domain/Services/BoxInventoryService.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/WMS.Web.Domain/Services/BoxInventoryService.cs b/src/WMS.Web.Domain/Services/BoxInventoryService.cs index 0b3ae480..04cdd43d 100644 --- a/src/WMS.Web.Domain/Services/BoxInventoryService.cs +++ b/src/WMS.Web.Domain/Services/BoxInventoryService.cs @@ -108,6 +108,12 @@ namespace WMS.Web.Domain.Services else { var tag_update_entity = tagBox; + //2.2.1这里为了重新上架,改变仓库和仓位的需求 + if (!string.IsNullOrEmpty(dto.StockCode) && dto.SubStockId.HasValue) + { + tag_update_entity.StockCode = dto.StockCode; + tag_update_entity.SubStockId = dto.SubStockId.Value; + } tag_update_entity.Details = tagBox.Details; //2.2.1遍历改变的明细 foreach (var item in dto.Details)