From ef84d202e2ba2003b37392f426011e9a21b90666 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 11 Sep 2023 18:24:10 +0800 Subject: [PATCH] uipdate --- app/admin/svc/svc_data_statisstics.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/admin/svc/svc_data_statisstics.go b/app/admin/svc/svc_data_statisstics.go index 4e87488..91a355d 100644 --- a/app/admin/svc/svc_data_statisstics.go +++ b/app/admin/svc/svc_data_statisstics.go @@ -1000,6 +1000,7 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD titleList = []string{"学校名称", "预定总费用", "退款总计"} xlsx.SetSheetRow("Sheet1", "A1", &titleList) + j := 2 //表头被第一行用了,只能从第二行开始 for _, v := range m { var income, refund string //统计收入 @@ -1037,7 +1038,6 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD refund = mapArr2[0]["total"] } } - j := 2 //表头被第一行用了,只能从第二行开始 xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{v.Name, income, refund}) j++ }