修改马士基API订舱

master
jianghaiqing 9 months ago
parent 8788b01031
commit 812b40c3e8

@ -145,7 +145,12 @@ namespace Myshipping.Application
/// Transfer Nomination(预甩货通知) /// Transfer Nomination(预甩货通知)
/// </summary> /// </summary>
[Description("TransferNomination")] [Description("TransferNomination")]
TRANSFER_NOMINATION TRANSFER_NOMINATION,
/// <summary>
/// VGM回执
/// </summary>
[Description("VGM回执")]
VGM_FEEDBACK,
} }
} }

@ -55,7 +55,7 @@ namespace Myshipping.Application.Service.BookingOrder
/// </summary> /// </summary>
/// <param name="model">请求船期详情</param> /// <param name="model">请求船期详情</param>
/// <returns>返回船期结果</returns> /// <returns>返回船期结果</returns>
[HttpPost("/BookingOrder/SearchShipSailingSchedule")] [HttpPost("/BookingMSKAPI/SearchShipSailingSchedule")]
public async Task<List<SearchShipSailingScheduleResultDto>> SearchShipSailingSchedule(QueryShipSailingScheduleDto model) public async Task<List<SearchShipSailingScheduleResultDto>> SearchShipSailingSchedule(QueryShipSailingScheduleDto model)
{ {
List<SearchShipSailingScheduleResultDto> list = new List<SearchShipSailingScheduleResultDto>(); List<SearchShipSailingScheduleResultDto> list = new List<SearchShipSailingScheduleResultDto>();
@ -224,7 +224,7 @@ namespace Myshipping.Application.Service.BookingOrder
/// </summary> /// </summary>
/// <param name="model">请求订舱详情</param> /// <param name="model">请求订舱详情</param>
/// <returns></returns> /// <returns></returns>
[HttpPost("/BookingOrder/SendMSKBooking")] [HttpPost("/BookingMSKAPI/SendMSKBooking")]
public async Task<MSKBookingResultDto> SendMSKBooking(MSKBookingDto model) public async Task<MSKBookingResultDto> SendMSKBooking(MSKBookingDto model)
{ {
MSKBookingResultDto result = new MSKBookingResultDto(); MSKBookingResultDto result = new MSKBookingResultDto();
@ -485,7 +485,7 @@ namespace Myshipping.Application.Service.BookingOrder
/// </summary> /// </summary>
/// <param name="model">请求详情</param> /// <param name="model">请求详情</param>
/// <returns>返回检索结果</returns> /// <returns>返回检索结果</returns>
[HttpPost("/BookingOrder/SearchCommodities")] [HttpPost("/BookingMSKAPI/SearchCommodities")]
public async Task<List<SearchCommodityResultDto>> SearchCommodities(QueryCommoditiesDto model) public async Task<List<SearchCommodityResultDto>> SearchCommodities(QueryCommoditiesDto model)
{ {
List<SearchCommodityResultDto> list = new List<SearchCommodityResultDto>(); List<SearchCommodityResultDto> list = new List<SearchCommodityResultDto>();
@ -576,7 +576,7 @@ namespace Myshipping.Application.Service.BookingOrder
/// </summary> /// </summary>
/// <param name="model">请求详情</param> /// <param name="model">请求详情</param>
/// <returns>返回检索结果</returns> /// <returns>返回检索结果</returns>
[HttpPost("/BookingOrder/SearchLocations")] [HttpPost("/BookingMSKAPI/SearchLocations")]
public async Task<List<QueryLocationsResultDto>> SearchLocations(QueryLocationsDto model) public async Task<List<QueryLocationsResultDto>> SearchLocations(QueryLocationsDto model)
{ {
List<QueryLocationsResultDto> list = new List<QueryLocationsResultDto>(); List<QueryLocationsResultDto> list = new List<QueryLocationsResultDto>();

@ -1220,7 +1220,8 @@ namespace Myshipping.Application
if (File.Exists(fileFullPath)) if (File.Exists(fileFullPath))
{ {
//如果确认文件读取成功 //如果确认文件读取成功
var bookFilePath = FileAttachHelper.MoveFile(id.ToString(), fileFullPath, batchNo).GetAwaiter().GetResult(); var bookFilePath = FileAttachHelper.MoveFile(id.ToString(), fileFullPath, batchNo
, false, null, true).GetAwaiter().GetResult();
//将格式单附件写入订舱的附件 //将格式单附件写入订舱的附件
SaveEDIFile(id, bookFilePath, new System.IO.FileInfo(bookFilePath).Name, taskBCInfo.TenantId.Value, SaveEDIFile(id, bookFilePath, new System.IO.FileInfo(bookFilePath).Name, taskBCInfo.TenantId.Value,
@ -1234,7 +1235,8 @@ namespace Myshipping.Application
if (File.Exists(fileFullPath)) if (File.Exists(fileFullPath))
{ {
//如果确认文件读取成功 //如果确认文件读取成功
var bookFilePath = FileAttachHelper.MoveFile(id.ToString(), fileFullPath, batchNo, false, "bcnoticefile").GetAwaiter().GetResult(); var bookFilePath = FileAttachHelper.MoveFile(id.ToString(), fileFullPath, batchNo
, false, "bcnoticefile",true).GetAwaiter().GetResult();
//将格式单附件写入订舱的附件 //将格式单附件写入订舱的附件
SaveEDIFile(id, bookFilePath, new System.IO.FileInfo(bookFilePath).Name, taskBCInfo.TenantId.Value, SaveEDIFile(id, bookFilePath, new System.IO.FileInfo(bookFilePath).Name, taskBCInfo.TenantId.Value,

Loading…
Cancel
Save