From c267b4eaa66c2b6d69a84d9834368ec82592e1ff Mon Sep 17 00:00:00 2001 From: wanghaomei Date: Thu, 24 Nov 2022 09:57:43 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E6=96=87=E4=BB=B6=E9=85=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BookingOrder/BookingOrderService.cs | 2 +- Myshipping.Core/Myshipping.Core.xml | 44 +++++++++---------- Myshipping.Web.Core/applicationconfig.json | 4 ++ 3 files changed, 27 insertions(+), 23 deletions(-) diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 66f556fe..6e04a87b 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -1185,7 +1185,7 @@ namespace Myshipping.Application public async Task Print(long bookingId, string type) { var bs = await GetReportFile(bookingId, type); - var fileName = HttpUtility.UrlEncode($"{bookingId}_{DateTime.Now.Ticks}.xlsx", Encoding.GetEncoding("UTF-8")); + var fileName = HttpUtility.UrlEncode($"{bookingId}_{DateTime.Now.Ticks}.pdf", Encoding.GetEncoding("UTF-8")); var result = new FileContentResult(bs, "application/octet-stream") { FileDownloadName = fileName }; return result; } diff --git a/Myshipping.Core/Myshipping.Core.xml b/Myshipping.Core/Myshipping.Core.xml index 89f124ee..a6d30e3a 100644 --- a/Myshipping.Core/Myshipping.Core.xml +++ b/Myshipping.Core/Myshipping.Core.xml @@ -7872,116 +7872,116 @@ 关键字 - + 获取船公司 - + 获取船公司映射 - + 获取船名 - + 获取船名映射 - + 获取船代 - + 获取场站 - + 获取场站映射 - + 获取起始港 - + 获取目的港 - + 获取包装 - + 获取运输方式 - + 获取箱型 - + 获取箱型映射 - + 付费方式 - + 付费方式映射 - + 起始港映射 - + 目的港映射 - + 包装映射 - + 运输服务映射 - + 签单方式 @@ -8454,7 +8454,7 @@ - + 缓存数据 @@ -9513,7 +9513,7 @@ - + 缓存数据 diff --git a/Myshipping.Web.Core/applicationconfig.json b/Myshipping.Web.Core/applicationconfig.json index 6eedf260..84c07626 100644 --- a/Myshipping.Web.Core/applicationconfig.json +++ b/Myshipping.Web.Core/applicationconfig.json @@ -113,5 +113,9 @@ "RulesEngineProjects": "OCEAN_BOOKING", "FriendlyExceptionSettings": { "HideErrorCode": true + }, + "TempFile": { + "Path": "TempFiles", + "RemainHours": 2 } } \ No newline at end of file