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)