SendBookingOrder入参添加附件列表

master
zhangxiaofeng 8 months ago
parent ef53153c80
commit 9bc3d36069

@ -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<List<Children>>();
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();

@ -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
///货物状态
///</summary>
public List<BookingGoodsStatusDto> GoodsStatus { get; set; }
/// <summary>
/// 附件列表
/// </summary>
public List<DownloadFile> Files { get; set; }
}

Loading…
Cancel
Save