|
|
|
@ -286,7 +286,7 @@ namespace Myshipping.Application
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
[SqlSugarUnitOfWork]
|
|
|
|
|
[HttpPost("/BookingOrder/Add")]
|
|
|
|
|
public async Task Add(AddBookingOrderInput input)
|
|
|
|
|
public async Task<long> Add(AddBookingOrderInput input)
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
if (input.ParentId == 0)
|
|
|
|
@ -323,7 +323,7 @@ namespace Myshipping.Application
|
|
|
|
|
|
|
|
|
|
var entity = input.Adapt<BookingOrder>();
|
|
|
|
|
|
|
|
|
|
await _rep.InsertAsync(entity);
|
|
|
|
|
var id=await _rep.InsertReturnSnowflakeIdAsync(entity);
|
|
|
|
|
if (input.ctnInputs != null)
|
|
|
|
|
{
|
|
|
|
|
foreach (var item in input.ctnInputs)
|
|
|
|
@ -357,7 +357,7 @@ namespace Myshipping.Application
|
|
|
|
|
{
|
|
|
|
|
await SendTrace(entity.Id.ToString(), entity.YARDID, entity.YARD, entity.MBLNO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return id;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|