wanghaomei 1 year ago
commit 161d6f6612

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

Loading…
Cancel
Save