This commit is contained in:
夏菊 2025-03-24 17:31:47 +08:00
parent 2c74bec311
commit 4e650b273d
1 changed files with 1 additions and 1 deletions

View File

@ -479,7 +479,7 @@ namespace FineUIPro.Web.PZHGL.GJSX
string filePath = string.Empty;
initTemplatePath = Const.GJSXOutTemplateUrl;
uploadfilepath = rootPath + initTemplatePath;
newUrl = uploadfilepath.Replace(".xlsx", "(" + DateTime.Now.ToString("yyyyMMdd") + ").xlsx");
newUrl = uploadfilepath.Replace(".xlsx", "(" + DateTime.Now.ToString("yyyyMMddHHmmss") + ").xlsx");
File.Copy(uploadfilepath, newUrl);
// 第一步:读取文件流
NPOI.SS.UserModel.IWorkbook workbook;