master
wanghaomei 9 months ago
parent 986bf3b619
commit ec507dda14

@ -10286,6 +10286,16 @@ namespace Myshipping.Application
}
}
/// <summary>
/// 临时补扣费用
/// </summary>
/// <returns></returns>
[HttpGet("/BookingOrder/FeeById"), AllowAnonymous]
public async Task FeeById(List<long> idList, int bsType = 28, int sendtype = 0)
{
await _publisher.PublishAsync(new ChannelEventSource($"Booking:DoFeeRecord", new { bsType = bsType, sendtype = sendtype, idList = idList }));
}
#endregion
#region 打印船公司ONE的订舱附件
@ -12154,22 +12164,28 @@ namespace Myshipping.Application
UNLocationCode = model.placeOfDeliveryUnLocCode,
cityName = model.placeOfDeliveryCityName,
},
selectedRoute = new MSKAPIBookingRoute {
bookingSchedules = new MSKAPIBookingSchedules {
selectedRoute = new MSKAPIBookingRoute
{
bookingSchedules = new MSKAPIBookingSchedules
{
originDepartureDateTimeLocal = model.originDepartureDateTimeLocal.Value.ToString("yyyy-MM-dd"),
destinationArrivalDateTimeLocal = model.destinationArrivalDateTimeLocal.Value.ToString("yyyy-MM-dd"),
transportMode = new MSKAPIBookingTransportMode {
vessel = new MSKAPIBookingTransportModeVessel {
transportMode = new MSKAPIBookingTransportMode
{
vessel = new MSKAPIBookingTransportModeVessel
{
name = model.vesselName,
maerskVesselCode = model.carrierVesselCode,
},
exportVoyageNumber = model.exportVoyageNumber,
},
startLocation = new MSKAPIBookingRouteDetailsBase {
startLocation = new MSKAPIBookingRouteDetailsBase
{
cityName = model.placeOfReceiptCityName,
UNLocationCode = model.placeOfReceiptUnLocCode
},
endLocation= new MSKAPIBookingRouteDetailsBase {
endLocation = new MSKAPIBookingRouteDetailsBase
{
cityName = model.placeOfDeliveryCityName,
UNLocationCode = model.placeOfDeliveryUnLocCode
},
@ -12209,7 +12225,8 @@ namespace Myshipping.Application
{
model.ctns.ForEach(ctn =>
{
MSKAPIBookingEquipmentAndHaulage haulage = new MSKAPIBookingEquipmentAndHaulage {
MSKAPIBookingEquipmentAndHaulage haulage = new MSKAPIBookingEquipmentAndHaulage
{
equipmentDetails = new MSKAPIBookingEquipmentAndHaulageItem(),
stuffingDetails = new List<MSKAPIBookingStuffingdetails>()
};
@ -12217,7 +12234,8 @@ namespace Myshipping.Application
haulage.equipmentDetails.ISOEquipmentCode = ctn.ctnCode;
haulage.equipmentDetails.equipmentQuantity = ctn.ctnNum;
haulage.stuffingDetails.Add(new MSKAPIBookingStuffingdetails {
haulage.stuffingDetails.Add(new MSKAPIBookingStuffingdetails
{
stuffingValue = (int)ctn.ctnSufferWeight.Value,
stuffingMeasurementType = "WEIGHT",
stuffingMeasurementUnit = "KGS"
@ -12234,7 +12252,7 @@ namespace Myshipping.Application
_bookingDeliveryRecordRep.Insert(recordInfo);
if(recordCtnList.Count > 0)
if (recordCtnList.Count > 0)
{
recordCtnList.ForEach(async x =>
{
@ -12493,5 +12511,6 @@ namespace Myshipping.Application
return list;
}
#endregion
}
}

Loading…
Cancel
Save