放舱链接

booking_auth_dev
wanghaomei 2 years ago
parent af7ad0a5e3
commit 7df5128c35

@ -3654,6 +3654,22 @@
主键Id
</summary>
</member>
<member name="P:Myshipping.Application.UpdateBookingLetteryardOutput.OrderUrl">
<summary>
链接信息
</summary>
</member>
<member name="P:Myshipping.Application.BookingOrderUrlLetterYardOutput.UrlTxxp">
<summary>
提箱小票链接
</summary>
</member>
<member name="P:Myshipping.Application.BookingOrderUrlLetterYardOutput.UrlVgm">
<summary>
VGM链接
</summary>
</member>
<!-- Badly formed XML comment ignored for member "P:Myshipping.Application.BookingOrderUrlLetterYardOutput.UrlVgmSi" -->
<member name="T:Myshipping.Application.BookingOrderDto">
<summary>
订舱主表输出参数

@ -657,7 +657,16 @@ namespace Myshipping.Application
};
}
return letterYard.Adapt<UpdateBookingLetteryardOutput>();
var output = letterYard.Adapt<UpdateBookingLetteryardOutput>();
//链接信息
var urlModel = _repOrderUrl.FirstOrDefault(x => x.BookingId == bookingId);
if (urlModel != null)
{
output.OrderUrl = urlModel.Adapt<BookingOrderUrlLetterYardOutput>();
}
return output;
}
/// <summary>
@ -680,7 +689,16 @@ namespace Myshipping.Application
await _repLetterYard.UpdateAsync(entity);
}
//todo生成提箱小票、vgm、vgm&si链接
var order = _rep.FirstOrDefault(x => x.Id == input.BookingId);
//生成提箱小票
var allowCarrier = _cache.GetAllDictData().Result.Where(x => x.TypeCode == "txxp_carrier_list").Select(x => x.Code).ToList();
if (allowCarrier.Contains(order.CARRIERID))
{
var txxpLink = await TxxpLink(input.BookingId);
}
//todovgm、vgm&si链接
//...
}

@ -106,5 +106,25 @@ namespace Myshipping.Application
/// </summary>
public long Id { get; set; }
/// <summary>
/// 链接信息
/// </summary>
public BookingOrderUrlLetterYardOutput OrderUrl { get; set; }
}
public class BookingOrderUrlLetterYardOutput
{
/// <summary>
/// 提箱小票链接
/// </summary>
public string UrlTxxp { get; set; }
/// <summary>
/// VGM链接
/// </summary>
public string UrlVgm { get; set; }
/// <summary>
/// VGM&SI链接
/// </summary>
public string UrlVgmSi { get; set; }
}
}

Loading…
Cancel
Save