This commit is contained in:
alex
2023-07-05 10:45:10 +08:00
parent 2f07cd3e0e
commit 3957bd3e5c

View File

@@ -147,14 +147,12 @@ namespace Tnb.WarehouseMgr
[HttpGet]
public async Task<dynamic?> GetInOutStockCodesById([FromQuery] InOutStockDetailQuery input)
{
dynamic? result = null;
var dic = await _dictionaryDataService.GetDictionaryByTypeId(WmsWareHouseConst.WMS_INSTOCK_D_BILL_STATUS_TYPEID);
async Task<dynamic?> _fetchInOutStockCodesById<TEntity, TOut, TStockCode>(string billDId)
where TEntity : BaseEntity<string>, new()
where TOut : IInOutStockDetail<TStockCode>, new()
where TStockCode : BaseEntity<string>, IInOutStockCode, new()
{
var dic = await _dictionaryDataService.GetDictionaryByTypeId(WmsWareHouseConst.WMS_INSTOCK_D_BILL_STATUS_TYPEID);
var data = await _db.Queryable<TEntity>()
.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: