Merge remote-tracking branch 'origin/feature-refund_v2-wxy-20241204' into test

This commit is contained in:
wangxinyu 2024-12-24 17:06:11 +08:00
commit 258a274bd3
1 changed files with 2 additions and 1 deletions

View File

@ -367,7 +367,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