booking_auth_dev
wanghaomei 2 years ago
parent 5072ae1cb9
commit e5f5e7211e

@ -5201,6 +5201,17 @@
订舱主表输出参数
</summary>
</member>
<member name="P:Myshipping.Application.BookingOrderUrlOutput.LinkUrlTxxp">
<summary>
提箱小票链接
</summary>
</member>
<member name="P:Myshipping.Application.BookingOrderUrlOutput.LinkUrlVgm">
<summary>
vgm链接
</summary>
</member>
<!-- Badly formed XML comment ignored for member "P:Myshipping.Application.BookingOrderUrlOutput.LinkUrlVmgSi" -->
<member name="T:Myshipping.Application.BookingPrintTemplateService">
<summary>
订舱打印模板服务

@ -401,11 +401,11 @@ namespace Myshipping.Application
[HttpGet("/BookingOrder/get")]
public async Task<BookingOrderOutput> Get(long Id)
{
BookingOrderOutput list = new BookingOrderOutput();
BookingOrderOutput ordOut = new BookingOrderOutput();
var main = await _rep.FirstOrDefaultAsync(u => u.Id == Id);
if (main != null)
{
list = main.Adapt<BookingOrderOutput>();
ordOut = main.Adapt<BookingOrderOutput>();
var ctnlist = await _repCtn.AsQueryable().Where(x => x.BILLID == Id).ToListAsync();
var ctninput = ctnlist.Adapt<List<BookingCtnDto>>();
foreach (var item in ctninput)
@ -413,9 +413,20 @@ namespace Myshipping.Application
var ctndetaillist = await _ctndetailrep.AsQueryable().Where(x => x.CTNID == item.Id).ToListAsync();
item.ctnDetailInputs = ctndetaillist.Adapt<List<BookingCtnDetailDto>>();
}
list.ctnInputs = ctninput;
ordOut.ctnInputs = ctninput;
var ordUrl = _repOrderUrl.FirstOrDefault(x => x.BookingId == Id);
if (ordUrl != null)
{
ordOut.Link = new BookingOrderUrlOutput()
{
LinkUrlTxxp = ordUrl.UrlTxxp,
LinkUrlVgm = ordUrl.UrlVgm,
LinkUrlVmgSi = ordUrl.UrlVgmSi,
};
}
return list;
}
return ordOut;
}
#endregion

@ -7,7 +7,24 @@ namespace Myshipping.Application
/// </summary>
public class BookingOrderOutput : BookingOrderDto
{
public BookingOrderUrlOutput Link { get; set; }
}
public class BookingOrderUrlOutput
{
/// <summary>
/// 提箱小票链接
/// </summary>
public string LinkUrlTxxp { get; set; }
/// <summary>
/// vgm链接
/// </summary>
public string LinkUrlVgm { get; set; }
/// <summary>
/// vgm&si链接
/// </summary>
public string LinkUrlVmgSi { get; set; }
}
}

Loading…
Cancel
Save