From 3957bd3e5cbc6101e82b3d224486dcc3bc10b8d7 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 5 Jul 2023 10:45:10 +0800 Subject: [PATCH] 1 --- WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs index 9122308b..4bbfb724 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs @@ -147,14 +147,12 @@ namespace Tnb.WarehouseMgr [HttpGet] public async Task GetInOutStockCodesById([FromQuery] InOutStockDetailQuery input) { - dynamic? result = null; - var dic = await _dictionaryDataService.GetDictionaryByTypeId(WmsWareHouseConst.WMS_INSTOCK_D_BILL_STATUS_TYPEID); - async Task _fetchInOutStockCodesById(string billDId) where TEntity : BaseEntity, new() where TOut : IInOutStockDetail, new() where TStockCode : BaseEntity, IInOutStockCode, new() { + var dic = await _dictionaryDataService.GetDictionaryByTypeId(WmsWareHouseConst.WMS_INSTOCK_D_BILL_STATUS_TYPEID); var data = await _db.Queryable() .Where(a => a.id == billDId) .Select(a => new TOut @@ -166,6 +164,7 @@ namespace Tnb.WarehouseMgr return data; } + dynamic? result = null; switch (input.inoutStockType) { case EnumInOutStockType.In: