From 82af4d9ee29d0657c78c610889c1455958ec104e Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Tue, 2 Apr 2024 11:58:07 +0800 Subject: [PATCH] update --- app/admin/svc/svc_data_statisstics.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/admin/svc/svc_data_statisstics.go b/app/admin/svc/svc_data_statisstics.go index 551de8a..2981019 100644 --- a/app/admin/svc/svc_data_statisstics.go +++ b/app/admin/svc/svc_data_statisstics.go @@ -452,11 +452,11 @@ func SelfSupportForSchoolDataStatisticsExport(req md.SelfSupportForSchoolDataSta xlsx.CopySheet(1, sheetIndex) xlsx.SetSheetRow(k, "A1", &[]interface{}{"商 家 分 餐 数 据 统 计 表 " + "(" + req.StartDate + "至" + req.EndDate + ")"}) j := 4 //表头前三行被占用了,只能从第四行开始 - var breakFastTotal, lunchTotal, dinnerTotal, supperTotal, totalTotal float64 - var breakFastAmountTotal, lunchAmountTotal, dinnerAmountTotal, supperAmountTotal, totalAmountTotal float64 for kk, vv := range v { var startRow = 0 var endRow = 0 + var breakFastTotal, lunchTotal, dinnerTotal, supperTotal, totalTotal float64 + var breakFastAmountTotal, lunchAmountTotal, dinnerAmountTotal, supperAmountTotal, totalAmountTotal float64 for _, device := range deviceNameArr { for kkk, vvv := range vv { if kkk == "" {