From 7f5893c8dba2490e5e36f395f9ca6e92fa87fd43 Mon Sep 17 00:00:00 2001 From: wanghaomei Date: Tue, 12 Dec 2023 17:11:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E7=A5=A8=E8=88=B9=E5=8F=B8=E6=98=A0?= =?UTF-8?q?=E5=B0=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingOrder/BookingOrderService.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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,