diff --git a/app/db/db_order_list.go b/app/db/db_order_list.go index bc9582a..d8e3d9e 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("time desc,id desc").FindAndCount(&order) + count, err := sess.Limit(size, start).OrderBy("create_time desc,id desc").FindAndCount(&order) if err != nil { return nil, count }