booking_auth_dev
wanghaomei 2 years ago
commit 1436f86f9a

@ -285,6 +285,8 @@ namespace Myshipping.Application
.ToPagedListAsync(input.PageNo, input.PageSize);
return entities.XnPagedResult();
}
[HttpPost("/BookingOrder/AddOrUpdate")]
public async Task<long> AddOrUpdate(BookingOrderDto Dto)
{
@ -292,22 +294,15 @@ namespace Myshipping.Application
{
throw Oops.Bah("请传入正常数据!");
}
if (Dto.Id == 0)
{
return await Add(Dto);
}
else
{
await Update(Dto);
return Dto.Id;
}
}
/// <summary>
@ -316,7 +311,7 @@ namespace Myshipping.Application
/// <param name="input"></param>
/// <returns></returns>
[SqlSugarUnitOfWork]
[NonAction]
[HttpPost("/BookingOrder/Add")]
public async Task<long> Add(BookingOrderDto input)
{
@ -427,7 +422,7 @@ namespace Myshipping.Application
/// <param name="input"></param>
/// <returns></returns>
[SqlSugarUnitOfWork]
[NonAction]
[HttpPost("/BookingOrder/Update")]
public async Task Update(BookingOrderDto input)
{
if (input.ParentId == 0)

Loading…
Cancel
Save