From a4cd5da1160f9520ea9cfdc7ba96d32cb5319e37 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 3 Oct 2023 23:36:46 +0800 Subject: [PATCH] update --- app/admin/svc/svc_data_statisstics.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/app/admin/svc/svc_data_statisstics.go b/app/admin/svc/svc_data_statisstics.go index f5d1ee6..f42091b 100644 --- a/app/admin/svc/svc_data_statisstics.go +++ b/app/admin/svc/svc_data_statisstics.go @@ -725,6 +725,15 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD j := 3 //表头前两行用了,只能从第三行开始 var sumClassNum, sumBreakfast, sumLunch, sumDinner = int64(0), int64(0), int64(0), int64(0) + + tmpEnterpriseDb := db.EnterpriseDb{} + tmpEnterpriseDb.Set() + tmpEnterprise, err11 := tmpEnterpriseDb.GetEnterpriseByName(k1) + if err11 != nil { + logx.Error(err11) + println("<<<>>>>Error:::", err11.Error()) + panic(err11) + } tmpClassDb := db.ClassDb{} tmpClassDb.Set(0) classList, err := tmpClassDb.FindClassAscByEnterprise(tmpEnterprise.Id)