From 42154002daccfd2fcae2521be88547bfb061065e Mon Sep 17 00:00:00 2001 From: wet <1034391973@qq.com> Date: Tue, 15 Aug 2023 09:55:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E7=AE=B1=E5=B0=8F=E7=A5=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Service/BookingOrder/BookingOrderService.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index e9c84767..c8b3dfe9 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -9275,7 +9275,9 @@ HLCUTA12307DPXJ3 以这票为例 6个柜 _logger.LogInformation("提箱小票CMA:" + ytAcc.ToJsonString()); var order = _rep.FirstOrDefault(x => x.Id == Id); //条件判断 目前只支持CMA 的数据 - if (order.CARRIERID != "CMA") + + var CARRIERID= _cache.GetAllMappingCarrier().Result.Where(x => order.CARRIERID == x.Code).Select(x => x.MapCode).FirstOrDefault(); + if (CARRIERID != "CMA") { throw Oops.Bah("船公司目前只支持CMA"); } @@ -9285,7 +9287,7 @@ HLCUTA12307DPXJ3 以这票为例 6个柜 } if (string.IsNullOrEmpty(order.MBLNO)) { - throw Oops.Bah("船名不能为空"); + throw Oops.Bah("提单号不能为空"); } var json = new {