# Conflicts:
#	Myshipping.Application/Service/BookingOrder/BookingOrderService.cs
optimize
wet 2 years ago
commit bcc3b38154

@ -1786,9 +1786,7 @@ namespace Myshipping.Application
//fileName = $"{dicCate.Value}_{order.MBLNO}_{DateTime.Now.Ticks}{fileType}";//名称 fileName = $"{dicCate.Value}_{order.MBLNO}_{DateTime.Now.Ticks}{fileType}";//名称
fileName = $"{order.MBLNO}_{DateTime.Now.Ticks}{fileType}";//名称
var opt = App.GetOptions<TempFileOptions>().Path; var opt = App.GetOptions<TempFileOptions>().Path;
var serverpath = Path.Combine(App.WebHostEnvironment.WebRootPath, opt);//服务器路径 var serverpath = Path.Combine(App.WebHostEnvironment.WebRootPath, opt);//服务器路径
if (!Directory.Exists(serverpath)) if (!Directory.Exists(serverpath))
@ -1888,7 +1886,7 @@ namespace Myshipping.Application
{ {
Directory.CreateDirectory(fileFullPath); Directory.CreateDirectory(fileFullPath);
} }
fileName = $"{dicCate.Value}_{order.MBLNO}_{DateTime.Now.Ticks}" + ".xls";//名称 fileName = $"{dicCate.Value}_{order.MBLNO}_{printTemplate.DisplayName}_{DateTime.Now.Ticks}" + ".xls";//名称
_logger.LogInformation("导出excel:" + Path.Combine(fileFullPath, fileName)); _logger.LogInformation("导出excel:" + Path.Combine(fileFullPath, fileName));
var filestream = new FileStream(Path.Combine(fileFullPath, fileName), FileMode.OpenOrCreate, FileAccess.ReadWrite); var filestream = new FileStream(Path.Combine(fileFullPath, fileName), FileMode.OpenOrCreate, FileAccess.ReadWrite);
excelwork.Write(filestream); excelwork.Write(filestream);
@ -3663,7 +3661,7 @@ namespace Myshipping.Application
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
[HttpGet("/BookingOrder/GetFieldName")] [HttpGet("/BookingOrder/GetFieldName")]
public async Task<dynamic> GetFieldName() public async Task<dynamic> GetFieldName()
{ {
BookingOrder order = new BookingOrder(); BookingOrder order = new BookingOrder();
BookingCtn ctn = new BookingCtn(); BookingCtn ctn = new BookingCtn();

Loading…
Cancel
Save