接口优化

This commit is contained in:
tongfei
2023-11-17 15:54:55 +08:00
parent 1a28d353f9
commit d2740124d2
9 changed files with 71 additions and 123 deletions

View File

@@ -32,6 +32,6 @@ namespace WMS.Web.Domain.Entitys
/// <summary>
/// 明细
/// </summary>
public List<BoxInventoryDetails> Details = new List<BoxInventoryDetails>();
public List<BoxInventoryDetails> Details { get; set; } = new List<BoxInventoryDetails>();
}
}

View File

@@ -25,7 +25,7 @@ namespace WMS.Web.Domain.Infrastructure
/// </summary>
/// <param name="boxBillNo"></param>
/// <returns></returns>
Task<List<BoxInventoryDetailsResponse>> GetListDetailsBy(string boxBillNo);
Task<BoxInventoryResponse> GetInfoBy(string boxBillNo);
/// <summary>
/// 列表-根据箱ids

View File

@@ -44,7 +44,16 @@ namespace WMS.Web.Domain.Mappers
//即时库存明细-映射
CreateMap<InventoryDetailsGenerateDto, InventoryDetails>();
//箱库存详情-映射
CreateMap<BoxInventoryResponse, BoxInventory>()
.ForMember(x=>x.Details,t=>t.Ignore());
CreateMap<BoxInventoryDetailsResponse, BoxInventoryDetails>();
}
}
}

View File

@@ -241,7 +241,7 @@ namespace WMS.Web.Domain.Services
/// 非采购上架-保存
/// </summary>
/// <param name="dto"></param>
/// <param name="staffId"></param>
/// <param name="loginInfo"></param>
/// <param name="isTransaction"></param>
/// <returns></returns>
private async Task<Result> ShelfNoPurchaseSave(NoPurchaseShelfRequest dto, LoginInDto loginInfo, bool isTransaction = true)