From edeca69ca91914545f4329953498b0bb26cc35c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Mon, 7 Dec 2020 09:04:14 +0800 Subject: [PATCH] aa --- business/model/dao/dao_order.go | 1 + 1 file changed, 1 insertion(+) diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index 1af8e38c6..52b5604c8 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -70,6 +70,7 @@ func GetDeliveryOrders(db *DaoDB, userIDs []string, statuss []int, fromTime, toT sql += ` AND a.created_at <= ?` sqlParams = append(sqlParams, toTime) } + sql += " ORDER BY a.created_at DESC" sql += " LIMIT ? OFFSET ?" pageSize = jxutils.FormalizePageSize(pageSize) sqlParams = append(sqlParams, pageSize, offset)