diff --git a/app/mix/dao/mongo.go b/app/mix/dao/mongo.go index 3645032c..979782dd 100644 --- a/app/mix/dao/mongo.go +++ b/app/mix/dao/mongo.go @@ -6710,12 +6710,14 @@ func (m *Mongo) BeforeUpdateActivityHotPriority(ctx *gin.Context, from, to int64 } filter := qmgo.M{ - "priority": qmgo.M{ - "$and": []qmgo.M{ - { - "$gt": to, + "$and": []qmgo.M{ + { + "priority": qmgo.M{ + "$gt": from, }, - { + }, + { + "priority": qmgo.M{ "$lte": to, }, }, @@ -6885,12 +6887,14 @@ func (m *Mongo) BeforeUpdateActivityBannerPriority(ctx *gin.Context, from, to in } filter := qmgo.M{ - "priority": qmgo.M{ - "$and": []qmgo.M{ - { + "$and": []qmgo.M{ + { + "priority": qmgo.M{ "$gt": from, }, - { + }, + { + "priority": qmgo.M{ "$lte": to, }, },