From 954f0a51a6182f34b370041736d65a38fcc6eee9 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Sat, 23 Sep 2023 18:28:19 +0800 Subject: [PATCH] update --- app/admin/svc/svc_data_statisstics.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/admin/svc/svc_data_statisstics.go b/app/admin/svc/svc_data_statisstics.go index 6ffc9af..5219292 100644 --- a/app/admin/svc/svc_data_statisstics.go +++ b/app/admin/svc/svc_data_statisstics.go @@ -1258,9 +1258,8 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD titleList = []string{startDate.Format("2006-01-02") + "~~" + endDate.Format("2006-01-02") + " (" + k1 + ") 班级收款明细"} xlsx.SetSheetRow("Sheet1", "A1", &titleList) titleList = []string{"年级", "班级", "预定总费用", "退款总计"} - xlsx.SetSheetRow("Sheet1", "A1", &titleList) - xlsx.SetSheetRow("Sheet1", "A2", &titleList) + xlsx.MergeCell("Sheet1", "A1", "D1") //合并单元格 style, err := xlsx.NewStyle(`{"fill":{"type":"pattern","color":["FFFF00"],"pattern":1}, "alignment":{"horizontal":"center"}}`) if err != nil {