diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 48f281d3..a1dab1b4 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -9809,6 +9809,15 @@ namespace Myshipping.Application var childrens = await _rep.AsQueryable().Filter(null, true).Where(x => x.ParentId == item.Id && x.TenantId == UserManager.TENANT_ID && x.IsDeleted == false).ToListAsync(); dto.childrens = childrens.Adapt>(); + + var files = await _bookingfile.AsQueryable().Filter(null, true).Where(x => x.BookingId == item.Id).ToListAsync(); + dto.Files = files.Select(x => new ReceiveBcInfoDto.DownloadFile() + { + FileName = x.FileName, + FileType = x.TypeCode, + FilePath = x.FilePath + }).ToList(); + foreach (var childitem in dto.childrens) { var ctnInputs = await _repCtn.AsQueryable().Filter(null, true).Where(x => x.BILLID == childitem.Id && x.IsDeleted == false).ToListAsync(); diff --git a/Myshipping.Application/Service/DataSync/Dto/BookingOrderDto.cs b/Myshipping.Application/Service/DataSync/Dto/BookingOrderDto.cs index 912aa9b7..36fe77c1 100644 --- a/Myshipping.Application/Service/DataSync/Dto/BookingOrderDto.cs +++ b/Myshipping.Application/Service/DataSync/Dto/BookingOrderDto.cs @@ -5,6 +5,7 @@ using System.ComponentModel; using System.Linq; using System.Text; using System.Threading.Tasks; +using static Myshipping.Application.Service.BookingOrder.Dto.ReceiveBcInfoDto; namespace Myshipping.Application.Service.DataSync.Dto { @@ -827,6 +828,12 @@ namespace Myshipping.Application.Service.DataSync.Dto ///货物状态 /// public List GoodsStatus { get; set; } + + + /// + /// 附件列表 + /// + public List Files { get; set; } }