jianghaiqing 2 years ago
commit bc5e1e87ab

@ -194,11 +194,18 @@ namespace Myshipping.Application
/// <summary>
/// 舱单
/// </summary>
/// <param name="bookingId"></param>
/// <param name="Ids"></param>
/// <returns></returns>
[HttpPost("/BookingOrderSeaeEdi/CustEDI")]
public async Task CustEDI(long bookingId)
public async Task CustEDI(string Ids)
{
var arr = Ids.Split(",");
if (arr.Count() > 0)
{
foreach (var ar in arr)
{
long bookingId = Convert.ToInt64(ar);
var order = await _seaeedi.AsQueryable().Filter(null, true).Where(x => x.BookingId == bookingId).FirstAsync();
var ctns = await _seaeedictn.AsQueryable().Filter(null, true).Where(x => x.PId == order.Id).ToListAsync();
//船公司
@ -262,8 +269,9 @@ namespace Myshipping.Application
await _seaeedi.UpdateAsync(x => x.Id == bookingId, x => new BookingOrderSeaeEdi { State = "已发送" });
}
}
}
#endregion
}
}

@ -177,7 +177,10 @@ namespace Myshipping.Application.Service.BookingOrderSeaeEdi.Dto
/// 场站
/// </summary>
public string YARD { get; set; }
/// <summary>
/// 状态
/// </summary>
public string State { get; set; }
public List<BookingOrderSeaeEdiCtnDto> EdiCtn { get; set; }

Loading…
Cancel
Save