From 812b40c3e85cc157127f709aac20a4bc8b0637b5 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Fri, 8 Mar 2024 12:30:53 +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=E8=AE=A2=E8=88=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Myshipping.Application/Enum/TaskBaseTypeEnum.cs | 7 ++++++- .../Service/BookingOrder/BookingMSKAPIService.cs | 8 ++++---- .../Service/TaskManagePlat/TaskManageBCService.cs | 6 ++++-- 3 files changed, 14 insertions(+), 7 deletions(-) diff --git a/Myshipping.Application/Enum/TaskBaseTypeEnum.cs b/Myshipping.Application/Enum/TaskBaseTypeEnum.cs index 5cf03a2c..9d6a0a00 100644 --- a/Myshipping.Application/Enum/TaskBaseTypeEnum.cs +++ b/Myshipping.Application/Enum/TaskBaseTypeEnum.cs @@ -145,7 +145,12 @@ namespace Myshipping.Application /// Transfer Nomination(预甩货通知) /// [Description("TransferNomination")] - TRANSFER_NOMINATION + TRANSFER_NOMINATION, + /// + /// VGM回执 + /// + [Description("VGM回执")] + VGM_FEEDBACK, } } diff --git a/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs b/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs index aedabe6b..af4507c1 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingMSKAPIService.cs @@ -55,7 +55,7 @@ namespace Myshipping.Application.Service.BookingOrder /// /// 请求船期详情 /// 返回船期结果 - [HttpPost("/BookingOrder/SearchShipSailingSchedule")] + [HttpPost("/BookingMSKAPI/SearchShipSailingSchedule")] public async Task> SearchShipSailingSchedule(QueryShipSailingScheduleDto model) { List list = new List(); @@ -224,7 +224,7 @@ namespace Myshipping.Application.Service.BookingOrder /// /// 请求订舱详情 /// - [HttpPost("/BookingOrder/SendMSKBooking")] + [HttpPost("/BookingMSKAPI/SendMSKBooking")] public async Task SendMSKBooking(MSKBookingDto model) { MSKBookingResultDto result = new MSKBookingResultDto(); @@ -485,7 +485,7 @@ namespace Myshipping.Application.Service.BookingOrder /// /// 请求详情 /// 返回检索结果 - [HttpPost("/BookingOrder/SearchCommodities")] + [HttpPost("/BookingMSKAPI/SearchCommodities")] public async Task> SearchCommodities(QueryCommoditiesDto model) { List list = new List(); @@ -576,7 +576,7 @@ namespace Myshipping.Application.Service.BookingOrder /// /// 请求详情 /// 返回检索结果 - [HttpPost("/BookingOrder/SearchLocations")] + [HttpPost("/BookingMSKAPI/SearchLocations")] public async Task> SearchLocations(QueryLocationsDto model) { List list = new List(); diff --git a/Myshipping.Application/Service/TaskManagePlat/TaskManageBCService.cs b/Myshipping.Application/Service/TaskManagePlat/TaskManageBCService.cs index ebaa94d2..4320aa26 100644 --- a/Myshipping.Application/Service/TaskManagePlat/TaskManageBCService.cs +++ b/Myshipping.Application/Service/TaskManagePlat/TaskManageBCService.cs @@ -1220,7 +1220,8 @@ namespace Myshipping.Application 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, @@ -1234,7 +1235,8 @@ namespace Myshipping.Application 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,