From 2d1d7995d998cd46a3107d09a577701fb2159f79 Mon Sep 17 00:00:00 2001 From: "boxu.zheng" Date: Thu, 24 Aug 2023 17:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=89=A9=E5=93=81=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Transactions/TransactionAppService.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Transactions/TransactionAppService.cs b/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Transactions/TransactionAppService.cs index b87c87bc3..5189f32ca 100644 --- a/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Transactions/TransactionAppService.cs +++ b/be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Transactions/TransactionAppService.cs @@ -138,12 +138,15 @@ public class TransactionAppService var locationDtos = await _locationAppService.GetAllAsync().ConfigureAwait(false); var balanceDtos = await _balanceAppService .GetAllListByFilterAsync(new SfsInventoryRequestInputBase()).ConfigureAwait(false); + + var itemBasicDtos_i = await _itemBasicAppService.GetAllListByFilterAsync(new SfsBaseDataRequestInputBase()).ConfigureAwait(false); + allItemBasicDtos = itemBasicDtos_i; + if (!itemCodes.Any()) { - var itemBasicDtos_i= await _itemBasicAppService.GetAllListByFilterAsync(new SfsBaseDataRequestInputBase()).ConfigureAwait(false); var itemBasicDtos_t = await _repository.GetListAsync().ConfigureAwait(false); - allItemBasicDtos = itemBasicDtos_i; + allTransactions = itemBasicDtos_t; itemCodes.AddRange(itemBasicDtos_i.Select(p => p.Code));