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) {