|
|
|
@ -1987,6 +1987,7 @@ namespace Myshipping.Application
|
|
|
|
|
public async Task<dynamic> SendLetterYard(long bookingId)
|
|
|
|
|
{
|
|
|
|
|
var entity = _repLetterYard.AsQueryable().Filter(null, true).First(x => x.BookingId == bookingId);
|
|
|
|
|
if (entity!=null) {
|
|
|
|
|
var json = entity.ToJsonString();
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
@ -2018,6 +2019,8 @@ namespace Myshipping.Application
|
|
|
|
|
_logger.LogError(ex.StackTrace);
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -7752,10 +7755,10 @@ namespace Myshipping.Application
|
|
|
|
|
[NonAction]
|
|
|
|
|
public async Task<dynamic> SendBookingOrder(long[] ids)
|
|
|
|
|
{
|
|
|
|
|
var itemcode = App.Configuration["ITEMCODE"];
|
|
|
|
|
var itemcode = App.Configuration["ITEMCODE"].ToString() ;
|
|
|
|
|
var BookingOrderMQUri= App.Configuration["SendBookingOrderMQUri"];
|
|
|
|
|
_logger.LogInformation("订舱数据回推地址:" + BookingOrderMQUri);
|
|
|
|
|
if (!string.IsNullOrEmpty(itemcode) && itemcode == "true")
|
|
|
|
|
_logger.LogInformation("订舱数据回推地址:" + BookingOrderMQUri+ itemcode);
|
|
|
|
|
if (!string.IsNullOrEmpty(itemcode) && itemcode == "True")
|
|
|
|
|
{
|
|
|
|
|
if (ids.Count() == 0)
|
|
|
|
|
{
|
|
|
|
|