booking_auth_dev
wanghaomei 2 years ago
parent 5072ae1cb9
commit e5f5e7211e

@ -5201,6 +5201,17 @@
订舱主表输出参数 订舱主表输出参数
</summary> </summary>
</member> </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"> <member name="T:Myshipping.Application.BookingPrintTemplateService">
<summary> <summary>
订舱打印模板服务 订舱打印模板服务

@ -159,7 +159,7 @@ namespace Myshipping.Application
.WhereIF(!string.IsNullOrWhiteSpace(input.HUMIDITY), u => u.HUMIDITY == input.HUMIDITY) .WhereIF(!string.IsNullOrWhiteSpace(input.HUMIDITY), u => u.HUMIDITY == input.HUMIDITY)
.WhereIF(!string.IsNullOrWhiteSpace(input.TEMPMIN), u => u.TEMPMIN == input.TEMPMIN) .WhereIF(!string.IsNullOrWhiteSpace(input.TEMPMIN), u => u.TEMPMIN == input.TEMPMIN)
.WhereIF(!string.IsNullOrWhiteSpace(input.TEMPMAX), u => u.TEMPMAX == input.TEMPMAX) .WhereIF(!string.IsNullOrWhiteSpace(input.TEMPMAX), u => u.TEMPMAX == input.TEMPMAX)
.WhereIF(input.ISCONTAINERSOC!=null, u => u.ISCONTAINERSOC == input.ISCONTAINERSOC) .WhereIF(input.ISCONTAINERSOC != null, u => u.ISCONTAINERSOC == input.ISCONTAINERSOC)
.WhereIF(!string.IsNullOrWhiteSpace(input.SOREMARK), u => u.SOREMARK.Contains(input.SOREMARK)) .WhereIF(!string.IsNullOrWhiteSpace(input.SOREMARK), u => u.SOREMARK.Contains(input.SOREMARK))
.WhereIF(!string.IsNullOrWhiteSpace(input.SIREMARK), u => u.SIREMARK.Contains(input.SIREMARK)) .WhereIF(!string.IsNullOrWhiteSpace(input.SIREMARK), u => u.SIREMARK.Contains(input.SIREMARK))
.WhereIF(!string.IsNullOrWhiteSpace(input.YARDREMARK), u => u.YARDREMARK.Contains(input.YARDREMARK)) .WhereIF(!string.IsNullOrWhiteSpace(input.YARDREMARK), u => u.YARDREMARK.Contains(input.YARDREMARK))
@ -196,7 +196,7 @@ namespace Myshipping.Application
.WhereIF(!string.IsNullOrWhiteSpace(input.CUSTSERVICEID), u => u.CUSTSERVICEID == input.CUSTSERVICEID) .WhereIF(!string.IsNullOrWhiteSpace(input.CUSTSERVICEID), u => u.CUSTSERVICEID == input.CUSTSERVICEID)
.WhereIF(!string.IsNullOrWhiteSpace(input.CUSTSERVICE), u => u.CUSTSERVICE.Contains(input.CUSTSERVICE)) .WhereIF(!string.IsNullOrWhiteSpace(input.CUSTSERVICE), u => u.CUSTSERVICE.Contains(input.CUSTSERVICE))
.WhereIF(!string.IsNullOrWhiteSpace(input.CUSTOMERNAME), u => u.CUSTOMERNAME.Contains(input.CUSTOMERNAME)) .WhereIF(!string.IsNullOrWhiteSpace(input.CUSTOMERNAME), u => u.CUSTOMERNAME.Contains(input.CUSTOMERNAME))
.WhereIF(input.CUSTOMERID !=null, u => u.CUSTOMERID == input.CUSTOMERID) .WhereIF(input.CUSTOMERID != null, u => u.CUSTOMERID == input.CUSTOMERID)
.WhereIF(!string.IsNullOrWhiteSpace(input.FORWARDER), u => u.FORWARDER.Contains(input.FORWARDER)) .WhereIF(!string.IsNullOrWhiteSpace(input.FORWARDER), u => u.FORWARDER.Contains(input.FORWARDER))
.WhereIF(!string.IsNullOrWhiteSpace(input.CUSTSERVICE), u => u.CUSTSERVICE == input.CUSTSERVICE) .WhereIF(!string.IsNullOrWhiteSpace(input.CUSTSERVICE), u => u.CUSTSERVICE == input.CUSTSERVICE)
.WhereIF(!string.IsNullOrWhiteSpace(input.CUSTOMERNAME), u => u.CUSTOMERNAME == input.CUSTOMERNAME) .WhereIF(!string.IsNullOrWhiteSpace(input.CUSTOMERNAME), u => u.CUSTOMERNAME == input.CUSTOMERNAME)
@ -401,11 +401,11 @@ namespace Myshipping.Application
[HttpGet("/BookingOrder/get")] [HttpGet("/BookingOrder/get")]
public async Task<BookingOrderOutput> Get(long Id) public async Task<BookingOrderOutput> Get(long Id)
{ {
BookingOrderOutput list = new BookingOrderOutput(); BookingOrderOutput ordOut = new BookingOrderOutput();
var main = await _rep.FirstOrDefaultAsync(u => u.Id == Id); var main = await _rep.FirstOrDefaultAsync(u => u.Id == Id);
if (main != null) if (main != null)
{ {
list = main.Adapt<BookingOrderOutput>(); ordOut = main.Adapt<BookingOrderOutput>();
var ctnlist = await _repCtn.AsQueryable().Where(x => x.BILLID == Id).ToListAsync(); var ctnlist = await _repCtn.AsQueryable().Where(x => x.BILLID == Id).ToListAsync();
var ctninput = ctnlist.Adapt<List<BookingCtnDto>>(); var ctninput = ctnlist.Adapt<List<BookingCtnDto>>();
foreach (var item in ctninput) foreach (var item in ctninput)
@ -413,9 +413,20 @@ namespace Myshipping.Application
var ctndetaillist = await _ctndetailrep.AsQueryable().Where(x => x.CTNID == item.Id).ToListAsync(); var ctndetaillist = await _ctndetailrep.AsQueryable().Where(x => x.CTNID == item.Id).ToListAsync();
item.ctnDetailInputs = ctndetaillist.Adapt<List<BookingCtnDetailDto>>(); 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 #endregion

@ -5,9 +5,26 @@ namespace Myshipping.Application
/// <summary> /// <summary>
/// 订舱主表输出参数 /// 订舱主表输出参数
/// </summary> /// </summary>
public class BookingOrderOutput:BookingOrderDto 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