diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index b789656d..0bf860a3 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -3965,6 +3965,14 @@ namespace Myshipping.Application throw Oops.Bah(BookingErrorCode.BOOK117); } + var carrCode = order.CARRIERID; + var carrMap = _cache.GetAllMappingCarrier().Result.Where(y => y.Code == order.CARRIERID && y.Module == "BookingTxxp").FirstOrDefault(); + if (carrMap != null) + { + carrCode = carrMap.MapCode; + } + + //亿通账号 var ytAcc = _webAccountConfig.GetAccountConfig("YitongWeb", UserManager.UserId).Result; if (ytAcc == null) @@ -4014,7 +4022,7 @@ namespace Myshipping.Application var postObj = new { SystemCode = "djy_hechuan", - CarrierCode = order.CARRIERID, + CarrierCode = carrCode, billOrderId = order.Id.ToString(), sendOrderCode = order.MBLNO, userId = UserManager.DjyUserId,