Browse Source

修改物品查询

集成Redis
郑勃旭 2 years ago
parent
commit
2d1d7995d9
  1. 7
      be/Modules/Inventory/src/Win_in.Sfs.Wms.Inventory.Application/Transactions/TransactionAppService.cs

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

Loading…
Cancel
Save