From 8e2dc34b7468999f0971102e60ca5091d7445284 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Tue, 16 Apr 2024 11:53:05 +0800 Subject: [PATCH] =?UTF-8?q?1ipad=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/db/db_order_list.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/db/db_order_list.go b/app/db/db_order_list.go index d8e3d9e..aa0edb8 100644 --- a/app/db/db_order_list.go +++ b/app/db/db_order_list.go @@ -168,7 +168,7 @@ func GetOrderListByIpad(eg *xorm.Engine, param map[string]string) (*[]model.Orde } size := utils.StrToInt(param["limit"]) start := (utils.StrToInt(param["page"]) - 1) * size - count, err := sess.Limit(size, start).OrderBy("create_time desc,id desc").FindAndCount(&order) + count, err := sess.Limit(size, start).OrderBy("create_at desc,id desc").FindAndCount(&order) if err != nil { return nil, count }