From c471a2377a7b9b049a5166557f8d6eee10e5d081 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 3 Jun 2024 18:29:31 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/admin/svc/order/svc_order_list.go | 8 +++++++- app/admin/svc/svc_data_statisstics.go | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/admin/svc/order/svc_order_list.go b/app/admin/svc/order/svc_order_list.go index 9e8f5fe..ea17d54 100644 --- a/app/admin/svc/order/svc_order_list.go +++ b/app/admin/svc/order/svc_order_list.go @@ -203,6 +203,9 @@ func OrderExport(c *gin.Context) { }) xlsx.SetRowHeight("Sheet1", j, 20) j++ + xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{}) + xlsx.SetRowHeight("Sheet1", j, 20) + j++ } } xlsx.DeleteSheet("template") //删除模板表 @@ -627,8 +630,9 @@ func OrderOutput(c *gin.Context) { xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{ inSideName + " 汇总: " + utils.IntToStr(total), }) + xlsx.SetRowHeight("Sheet1", j, 20) + j++ xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{}) - xlsx.SetRowHeight("Sheet1", j, 20) j++ } @@ -757,6 +761,8 @@ func OrderGoodsOutput(c *gin.Context) { xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{ title + " 汇总: " + utils.IntToStr(total), }) + xlsx.SetRowHeight("Sheet1", j, 20) + j++ xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{}) xlsx.SetRowHeight("Sheet1", j, 20) j++ diff --git a/app/admin/svc/svc_data_statisstics.go b/app/admin/svc/svc_data_statisstics.go index da3d75a..aa497bc 100644 --- a/app/admin/svc/svc_data_statisstics.go +++ b/app/admin/svc/svc_data_statisstics.go @@ -111,6 +111,8 @@ func DataStatisticsExport(req md.DataStatisticsExportReq) { xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{ k + " 汇总: " + utils.IntToStr(total), }) + xlsx.SetRowHeight("Sheet1", j, 20) + j++ xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{}) xlsx.SetRowHeight("Sheet1", j, 20) j++