From 482eed496053f2d5159916c1d231adfeabfc4455 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Fri, 19 Apr 2024 11:58:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=A9=AC=E5=A3=AB=E5=9F=BAAP?= =?UTF-8?q?I=E6=9F=A5=E8=AF=A2=E8=88=B9=E6=9C=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BookingOrder/BookingMSKAPIService.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs b/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs index 62e05dd4..b21c0867 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs @@ -23,6 +23,7 @@ using System.Reflection.Metadata; using Org.BouncyCastle.Crypto; using Yitter.IdGenerator; using MySqlX.XDevAPI.Common; +using NPOI.OpenXmlFormats.Wordprocessing; namespace Myshipping.Application.Service.BookingOrder { @@ -132,6 +133,23 @@ namespace Myshipping.Application.Service.BookingOrder startDateType = "D", }; + //有时候船期需要带上箱型检索 + if (!string.IsNullOrWhiteSpace(model.ISOEquipmentCode)) + { + queryInfo.ISOEquipmentCode = model.ISOEquipmentCode; + } + + if (!string.IsNullOrWhiteSpace(model.stuffingWeight)) + { + queryInfo.stuffingWeight = model.stuffingWeight; + } + + if (model.stuffingVolume > 0) + { + queryInfo.stuffingVolume = model.stuffingVolume; + } + + MSKAPISearchPoint2PointScheduleResultDto resultInfo = null; var rlt = await queryUrl.SetBody(queryInfo)