修改马士基API查询船期

master
jianghaiqing 7 months ago
parent b098313ee6
commit 482eed4960

@ -23,6 +23,7 @@ using System.Reflection.Metadata;
using Org.BouncyCastle.Crypto; using Org.BouncyCastle.Crypto;
using Yitter.IdGenerator; using Yitter.IdGenerator;
using MySqlX.XDevAPI.Common; using MySqlX.XDevAPI.Common;
using NPOI.OpenXmlFormats.Wordprocessing;
namespace Myshipping.Application.Service.BookingOrder namespace Myshipping.Application.Service.BookingOrder
{ {
@ -132,6 +133,23 @@ namespace Myshipping.Application.Service.BookingOrder
startDateType = "D", 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; MSKAPISearchPoint2PointScheduleResultDto resultInfo = null;
var rlt = await queryUrl.SetBody(queryInfo) var rlt = await queryUrl.SetBody(queryInfo)

Loading…
Cancel
Save