From 3cb36bdf6d738abe335c2240b08056ed2c3fb2a8 Mon Sep 17 00:00:00 2001 From: wangxinyu Date: Tue, 24 Dec 2024 17:05:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E5=88=86=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/mix/dao/mongo_vas.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/mix/dao/mongo_vas.go b/app/mix/dao/mongo_vas.go index 6242660f..afc22cc3 100644 --- a/app/mix/dao/mongo_vas.go +++ b/app/mix/dao/mongo_vas.go @@ -301,7 +301,8 @@ func (m *Mongo) GetZoneRefundList(ctx *gin.Context, bMid int64, refundsStatusLis "$in": refundsStatusList, }, } - err := doc.Find(ctx, query).Limit(int64(limit)).Skip(int64(offset)).All(&list) + sortClause := "-refund_t" + err := doc.Find(ctx, query).Sort(sortClause).Skip(int64(offset)).Limit(int64(limit)).All(&list) if errors.Is(err, qmgo.ErrNoSuchDocuments) { err = nil return nil, err