修改派车

optimize
jianghaiqing 2 years ago
parent 6639885908
commit e1e902f4c8

@ -119,5 +119,11 @@ namespace Myshipping.Application
/// </summary>
[Description("比对下货纸")]
SHIPPING_ORDER_COMPARE,
/// <summary>
/// 派车
/// </summary>
[Description("派车")]
TRUCK_DISPATCH,
}
}

@ -365,6 +365,21 @@ namespace Myshipping.Application
return entities.Adapt<SqlSugarPagedList<BookingTruckPageDto>>();
}
/// <summary>
/// 订舱主键获取相关派车列表
/// </summary>
/// <param name="bookingId">订舱主键</param>
/// <returns>返回派车列表</returns>
[HttpGet("/BookingTruck/GetTruckListByBooking")]
public async Task<List<BookingTruckShowDto>> GetTruckListByBookingAsync(long bookingId)
{
var list = _bookingTruckRepository.AsQueryable().Where(a => a.BookingId == bookingId).ToList();
return list.Adapt<List<BookingTruckShowDto>>();
}
private BookingTruckDto InnerCreateTruckFromBookingOrder(long bookingId)
{
BookingTruckDto model = null;

@ -48,6 +48,13 @@ namespace Myshipping.Application
/// <returns>返回结果</returns>
Task<SqlSugarPagedList<BookingTruckPageDto>> GetPageAsync(QueryBookingTruckDto QuerySearch);
/// <summary>
/// 订舱主键获取相关派车列表
/// </summary>
/// <param name="bookingId">订舱主键</param>
/// <returns>返回派车列表</returns>
Task<List<BookingTruckShowDto>> GetTruckListByBookingAsync(long bookingId);
/// <summary>
/// 获取派车详情
/// </summary>

Loading…
Cancel
Save