diff --git a/app/admin/svc/svc_data_statisstics.go b/app/admin/svc/svc_data_statisstics.go index ae0fb9d..551de8a 100644 --- a/app/admin/svc/svc_data_statisstics.go +++ b/app/admin/svc/svc_data_statisstics.go @@ -2288,7 +2288,6 @@ func CentralKitchenForSchoolDataStatisticsContrast(req md.CentralKitchenForSchoo var fileName, downloadPath string var now = time.Now() - xlsx := excelize.NewFile() //数据对比 fileName = "数据对比_" + utils.Int64ToStr(now.UnixMilli()) + ".zip" downloadPath = "/export/central_kitchen_for_school/" + fileName @@ -2411,6 +2410,8 @@ func CentralKitchenForSchoolDataStatisticsContrast(req md.CentralKitchenForSchoo println("<<<>>>>Error:::", err.Error()) panic(err) } + + xlsx := excelize.NewFile() for _, class := range *classList { for k2, v2 := range v1 { if k2 == "" {