From c08274d935f3e79e368146146d62a4e59bf22240 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Fri, 8 Sep 2023 12:05:40 +0800 Subject: [PATCH] update --- app/admin/svc/svc_data_statisstics.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/admin/svc/svc_data_statisstics.go b/app/admin/svc/svc_data_statisstics.go index ff220a6..37c83b1 100644 --- a/app/admin/svc/svc_data_statisstics.go +++ b/app/admin/svc/svc_data_statisstics.go @@ -81,7 +81,6 @@ func NursingHomeDataStatisticsExport(req md.NursingHomeDataStatisticsExportReq) v.NursingHomePackageOrd.OutTradeNo, state, v.NursingHomePackageOrd.CreateAt}) j++ } - xlsx.SaveAs("./static" + fileName) break case 2: //退款申请表 @@ -264,7 +263,6 @@ func SelfSupportForSchoolDataStatisticsExport(req md.SelfSupportForSchoolDataSta v.SelfSupportForUserFaceInfo.SchoolFacePaymentStatus, v.SelfSupportForUserFaceInfo.SchoolFacePassStatus, v.Grade.Name, v.Class.Name, v.UserIdentity.CreateAt}) j++ } - xlsx.SaveAs("./static" + fileName) break case 2: //教师列表 @@ -310,7 +308,6 @@ func SelfSupportForSchoolDataStatisticsExport(req md.SelfSupportForSchoolDataSta v.SelfSupportForUserFaceInfo.SchoolFacePaymentStatus, v.SelfSupportForUserFaceInfo.SchoolFacePassStatus, v.UserIdentity.CreateAt}) j++ } - xlsx.SaveAs("./static" + fileName) break case 3: //消费明细表 @@ -369,9 +366,12 @@ func SelfSupportForSchoolDataStatisticsExport(req md.SelfSupportForSchoolDataSta v.Grade.Name, v.Class.Name, v.SelfSupportForSchoolOrd.TradeAmount, state, v.SelfSupportForSchoolOrd.FaceTime, v.SelfSupportForSchoolOrd.DeviceSn, identity}) j++ } - xlsx.SaveAs("./static" + fileName + ".xlsx") break } + + //将文件保存至服务器 + xlsx.SaveAs("./static" + fileName) + //新增数据 selfSupportForSchoolExportRecordsDb := db.SelfSupportForSchoolExportRecordsDb{} selfSupportForSchoolExportRecordsDb.Set()