diff --git a/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs b/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs index f5169b76..914cfc48 100644 --- a/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs +++ b/WarehouseMgr/Tnb.WarehouseMgr/WareHouseService.cs @@ -104,12 +104,12 @@ namespace Tnb.WarehouseMgr { if (input == null) throw new ArgumentNullException("input"); - async Task _updateLocalFunc(InOutStockApplyforUpInput input) - where TMaster : BaseEntity, new() - where TSlave : BaseEntity, IInOutStockCode, new() + async Task _updateLocalFunc(InOutStockApplyforUpInput input) + where TStockD : BaseEntity, new() + where TStockCode : BaseEntity, IInOutStockCode, new() { - var instockD = input.Adapt(); - var stockCodes = input.InstockCodes?.Adapt>(); + var instockD = input.Adapt(); + var stockCodes = input.InstockCodes?.Adapt>(); if (stockCodes?.Count > 0) { stockCodes.ForEach(x => @@ -139,15 +139,15 @@ namespace Tnb.WarehouseMgr [HttpGet] public async Task GetInOutStockCodesById([FromQuery] InOutStockDetailQuery input) { - async Task _fetchInOutStockCodesById(string billDId) - where TEntity : BaseEntity, new() - where TOut : IInOutStockDetail, new() + async Task _fetchInOutStockCodesById(string billDId) + where TStockD : BaseEntity, new() + where TOutput : IInOutStockDetail, new() where TStockCode : BaseEntity, IInOutStockCode, new() { var dic = await _dictionaryDataService.GetDictionaryByTypeId(WmsWareHouseConst.WMS_INSTOCK_D_BILL_STATUS_TYPEID); - var data = await _db.Queryable() + var data = await _db.Queryable() .Where(a => a.id == billDId) - .Select(a => new TOut + .Select(a => new TOutput { CodeDetails = SqlFunc.Subqueryable().Where(it => it.bill_d_id == a.id).ToList(), }, true)