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 }