optimize
wet 2 years ago
parent 9785842e2d
commit ad0b5984c8

@ -1849,7 +1849,7 @@ namespace Myshipping.Application
{ {
Directory.CreateDirectory(fileFullPath); Directory.CreateDirectory(fileFullPath);
} }
fileName = $"{dicCate.Value}_{order.MBLNO}_{DateTime.Now.Ticks}"+ ".xlsx";//名称 fileName = $"{dicCate.Value}_{order.MBLNO}_{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);

Loading…
Cancel
Save