|
|
|
@ -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;
|
|
|
|
|