From fe2f95276568f16d1e69fee2ea6e0ca963f4b815 Mon Sep 17 00:00:00 2001 From: DengBiao <2319963317@qq.com> Date: Mon, 25 Sep 2023 13:29:57 +0800 Subject: [PATCH] update --- app/admin/svc/svc_data_statisstics.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/admin/svc/svc_data_statisstics.go b/app/admin/svc/svc_data_statisstics.go index 1630c71..b68dbf3 100644 --- a/app/admin/svc/svc_data_statisstics.go +++ b/app/admin/svc/svc_data_statisstics.go @@ -1474,15 +1474,15 @@ func CentralKitchenForSchoolDataStatisticsExport(req md.CentralKitchenForSchoolD } xlsx.SetSheetRow("Sheet1", "A2", &titleList) - xlsx.MergeCell("Sheet1", "A1", "B1") //合并单元格 + xlsx.MergeCell("Sheet1", "A1", "E1") //合并单元格 style, err := xlsx.NewStyle(`{"fill":{"type":"pattern","color":["FFFF00"],"pattern":1}, "alignment":{"horizontal":"center"}}`) if err != nil { logx.Error(err) println("<<<>>>>Error:::", err.Error()) panic(err) } - xlsx.SetCellStyle("Sheet1", "A1", "B1", style) - xlsx.SetColWidth("Sheet1", "A", "B", 40) + xlsx.SetCellStyle("Sheet1", "A1", "E1", style) + xlsx.SetColWidth("Sheet1", "A", "E", 40) j := 3 //表头前两行用了,只能从第三行开始 total := int64(0)