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 {