jianghaiqing 2 years ago
commit bc5e1e87ab

@ -72,7 +72,7 @@ namespace Myshipping.Application
public async Task<List<BookingOrderSeaeEdiServiceDto>> PageESeaeEdi(long bookingId) public async Task<List<BookingOrderSeaeEdiServiceDto>> PageESeaeEdi(long bookingId)
{ {
var entities = await _seaeedi.AsQueryable().Filter(null, true).Where(x => x.BookingId == bookingId&&x.IsDeleted==false).ToListAsync(); var entities = await _seaeedi.AsQueryable().Filter(null, true).Where(x => x.BookingId == bookingId && x.IsDeleted == false).ToListAsync();
var list = entities.Adapt<List<BookingOrderSeaeEdiServiceDto>>(); var list = entities.Adapt<List<BookingOrderSeaeEdiServiceDto>>();
foreach (var item in list) foreach (var item in list)
{ {
@ -194,11 +194,18 @@ namespace Myshipping.Application
/// <summary> /// <summary>
/// 舱单 /// 舱单
/// </summary> /// </summary>
/// <param name="bookingId"></param> /// <param name="Ids"></param>
/// <returns></returns> /// <returns></returns>
[HttpPost("/BookingOrderSeaeEdi/CustEDI")] [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 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(); 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 = "已发送" }); await _seaeedi.UpdateAsync(x => x.Id == bookingId, x => new BookingOrderSeaeEdi { State = "已发送" });
} }
}
}
#endregion #endregion
} }
} }

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

Loading…
Cancel
Save