From 99601959d642950d46078bf2cdf2d68546ca2bbe Mon Sep 17 00:00:00 2001 From: Administrator Date: Thu, 13 Jan 2022 15:53:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entities/WMS/WMSHQHSharePartAppService.cs | 2 +- .../Entities/WMS/WmsHQMSharePartAppService.cs | 2 +- .../src/SettleAccount.Domain/Entities/WMS/TaskList.cs | 9 ++++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSHQHSharePartAppService.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSHQHSharePartAppService.cs index 4100b311..4a960acb 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSHQHSharePartAppService.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WMSHQHSharePartAppService.cs @@ -211,7 +211,7 @@ into temp1 public async Task WmsSharePartUpdate(WmsHQHSharePartOutPutDetial detial) { - var _entityList= _wmsRepository.Where(p => p.Id == detial.Id).ToList(); + var _entityList= _wmsRepository.Where(p => p.Id == detial.BranchId).ToList(); if (_entityList.Count() > 0) { foreach (var itm in _entityList) diff --git a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsHQMSharePartAppService.cs b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsHQMSharePartAppService.cs index 9ab72c29..43ce5815 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsHQMSharePartAppService.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsHQMSharePartAppService.cs @@ -319,7 +319,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS public async Task WmsSharePartUpdate(WmsHQHSharePartOutPutDetial detial) { - var _entityList = _wmsRepository.Where(p => p.Id == detial.Id).ToList(); + var _entityList = _wmsRepository.Where(p => p.Id == detial.BranchId).ToList(); if (_entityList.Count() > 0) { foreach (var itm in _entityList) diff --git a/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/WMS/TaskList.cs b/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/WMS/TaskList.cs index b5ea8dac..232183c2 100644 --- a/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/WMS/TaskList.cs +++ b/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/WMS/TaskList.cs @@ -491,6 +491,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS Qty = qty; StockQty = stockQty; OutPutQty = outputQty; + BranchId = Id; } public void SetId(Guid id) { @@ -848,7 +849,8 @@ namespace Win.Sfs.SettleAccount.Entities.WMS Qty = qty; StockQty = stockQty; OutPutQty = outPutQty; - + BranchId = Id; + } public void SetId(Guid id) { @@ -1083,6 +1085,11 @@ namespace Win.Sfs.SettleAccount.Entities.WMS Qty = qty; StockQty = stockQty; OutPutQty = outputQty; + BranchId = Id; + + + + } public void SetId(Guid id) {