diff --git a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs index 63ed846c..36fccd78 100644 --- a/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs +++ b/Myshipping.Application/Service/BookingOrder/BookingOrderService.cs @@ -1208,7 +1208,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