修改MSK API合约订舱,航行明细里有非港口的,不传航运信息

master
jianghaiqing 4 months ago
parent 33027d7668
commit 834a13524d

@ -669,16 +669,19 @@ namespace Myshipping.Application.Service.BookingOrder
throw Oops.Bah($"查询船期错误pid={model.PId} 预计到港日期arrivalDateTime 格式解析错误");
}
currDto.transportMode = new MSKAPIBookingTransportMode
if(detail.transport.vessel != null)
{
vessel = new MSKAPIBookingTransportModeVessel
currDto.transportMode = new MSKAPIBookingTransportMode
{
name = detail.transport.vessel.vesselName,
maerskVesselCode = detail.transport.vessel.carrierVesselCode,
vesselIMONumber = detail.transport.vessel.vesselIMONumber
},
exportVoyageNumber = detail.transport.carrierDepartureVoyageNumber,
};
vessel = new MSKAPIBookingTransportModeVessel
{
name = detail.transport.vessel.vesselName,
maerskVesselCode = detail.transport.vessel.carrierVesselCode,
vesselIMONumber = detail.transport.vessel.vesselIMONumber
},
exportVoyageNumber = detail.transport.carrierDepartureVoyageNumber,
};
}
currDto.serviceCode = detail.transport.carrierServiceCode;
currDto.transportModeCode = detail.transport.transportMode;

Loading…
Cancel
Save