From 9982436f4964a0be05106d9bdc6114e3b69335a9 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Wed, 8 Nov 2023 12:10:56 +0800 Subject: [PATCH] update --- app/admin/svc/svc_data_statisstics.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/app/admin/svc/svc_data_statisstics.go b/app/admin/svc/svc_data_statisstics.go index e04d511..41a1406 100644 --- a/app/admin/svc/svc_data_statisstics.go +++ b/app/admin/svc/svc_data_statisstics.go @@ -657,15 +657,6 @@ func SelfSupportForSchoolDataStatisticsExport(req md.SelfSupportForSchoolDataSta } totalData[k2]["num"] = sumNum totalData[k2]["amount"] = sumAmount - - xlsx.DeleteSheet("Sheet1") //TODO::只能放这里删除 - //将文件保存至服务器 - err1 := xlsx.SaveAs(tmpDownloadPath) - if err1 != nil { - logx.Error(err1) - println("<<<>>>>Error:::", err1.Error()) - panic(err1) - } } xlsx.NewSheet("Sheet1") @@ -688,6 +679,15 @@ func SelfSupportForSchoolDataStatisticsExport(req md.SelfSupportForSchoolDataSta j++ } + //xlsx.DeleteSheet("Sheet1") //TODO::只能放这里删除 + //将文件保存至服务器 + err1 := xlsx.SaveAs(tmpDownloadPath) + if err1 != nil { + logx.Error(err1) + println("<<<>>>>Error:::", err1.Error()) + panic(err1) + } + xlsDownloadPath = append(xlsDownloadPath, tmpDownloadPath) xlsFileName = append(xlsFileName, tmpFileName) }