:sparkles:代码生成新增支持中文表头导入数据

This commit is contained in:
不做码农
2023-09-20 17:20:38 +08:00
parent 714acc0749
commit 2ae5fe03a5
5 changed files with 19 additions and 13 deletions
@@ -194,6 +194,9 @@ namespace Infrastructure.Controllers
if (!Directory.Exists(fullPath))
{
Directory.CreateDirectory(Path.GetDirectoryName(fullPath));
}
if (!Path.Exists(fullPath))
{
MiniExcel.SaveAs(fullPath, list, overwriteFile: true);
}
return (sFileName, fullPath);