From 987f0dbc02fc10945ad446a68c37cf8275172476 Mon Sep 17 00:00:00 2001 From: lvzb <35200379@qq.com> Date: Thu, 21 Dec 2023 17:16:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B9=E6=8D=AE=E5=BA=93=E5=AD=98=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E5=BA=93=E5=AD=98=E4=BD=99=E9=A2=9D=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Balances/BalanceAppService.cs | 8 ++++++++ .../UnplannedIssueRequestForDongyangAppService.cs | 4 ---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Balances/BalanceAppService.cs b/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Balances/BalanceAppService.cs index 27a2dffb8..608c7fb97 100644 --- a/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Balances/BalanceAppService.cs +++ b/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Balances/BalanceAppService.cs @@ -484,7 +484,15 @@ public class BalanceAppService var locationDto = await _locationAclService.GetByCodeAsync(location).ConfigureAwait(false); if (locationDto != null) { + if(input.LocationAreas==null) + { + input.LocationAreas = new List(); + } input.LocationAreas.Add(locationDto.AreaCode); + if (input.LocationTypes == null) + { + input.LocationTypes = new List(); + } input.LocationTypes.Add(locationDto.Type); } } diff --git a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/UnplannedIssueRequests/UnplannedIssueRequestForDongyangAppService.cs b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/UnplannedIssueRequests/UnplannedIssueRequestForDongyangAppService.cs index 5a269608f..52c82a38c 100644 --- a/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/UnplannedIssueRequests/UnplannedIssueRequestForDongyangAppService.cs +++ b/be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Requests/UnplannedIssueRequests/UnplannedIssueRequestForDongyangAppService.cs @@ -107,8 +107,6 @@ public class UnplannedIssueRequestForDongyangAppService : UnplannedIssueRequestA RecommendBalanceRequestInput input = new RecommendBalanceRequestInput(); input.ItemCode = detail.ItemCode; input.Locations = new List() { detail.LocationCode }; - input.LocationAreas = new List() { locationDto.AreaCode }; - input.LocationTypes = new List { locationDto.Type }; input.Qty = detail.Qty; input.Statuses = new List { EnumInventoryStatus.OK }; var balanceLst = await _balanceAppService.GetRecommendBalancesByLocationsAsync(input).ConfigureAwait(false); @@ -135,8 +133,6 @@ public class UnplannedIssueRequestForDongyangAppService : UnplannedIssueRequestA RecommendBalanceRequestInput input = new RecommendBalanceRequestInput(); input.ItemCode = detail.ItemCode; input.Locations = new List() { detail.LocationCode }; - input.LocationAreas=new List() { locationDto.AreaCode }; - input.LocationTypes= new List { locationDto.Type}; input.Qty = detail.Qty; input.Statuses=new List { EnumInventoryStatus.OK }; var balanceLst = await _balanceAppService.GetRecommendBalancesByLocationsAsync(input).ConfigureAwait(false);