From 452b58c0b42449a5f7b3c5094749e17f4df858ce Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 3 Jun 2024 18:22:04 +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/svc_data_statisstics.go | 1 + app/db/db_order_list.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/admin/svc/svc_data_statisstics.go b/app/admin/svc/svc_data_statisstics.go index 9a235b0..da3d75a 100644 --- a/app/admin/svc/svc_data_statisstics.go +++ b/app/admin/svc/svc_data_statisstics.go @@ -111,6 +111,7 @@ func DataStatisticsExport(req md.DataStatisticsExportReq) { xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{ k + " 汇总: " + utils.IntToStr(total), }) + xlsx.SetSheetRow("Sheet1", "A"+strconv.Itoa(j), &[]interface{}{}) xlsx.SetRowHeight("Sheet1", j, 20) j++ } diff --git a/app/db/db_order_list.go b/app/db/db_order_list.go index 4c67678..02ccbc3 100644 --- a/app/db/db_order_list.go +++ b/app/db/db_order_list.go @@ -134,7 +134,7 @@ func GetOrderListExport(eg *xorm.Engine, param map[string]string) (*[]model.Orde } sess.In("enterprise_id", oids) } - count, err := sess.OrderBy("id desc").FindAndCount(&order) + count, err := sess.OrderBy("id asc").FindAndCount(&order) if err != nil { return nil, count }