by Robin at 20241213

This commit is contained in:
Robin 2024-12-13 15:54:27 +08:00
parent b509ee7de5
commit 65d1dfa03e
1 changed files with 13 additions and 9 deletions

View File

@ -6710,12 +6710,14 @@ func (m *Mongo) BeforeUpdateActivityHotPriority(ctx *gin.Context, from, to int64
} }
filter := qmgo.M{ filter := qmgo.M{
"priority": qmgo.M{ "$and": []qmgo.M{
"$and": []qmgo.M{ {
{ "priority": qmgo.M{
"$gt": to, "$gt": from,
}, },
{ },
{
"priority": qmgo.M{
"$lte": to, "$lte": to,
}, },
}, },
@ -6885,12 +6887,14 @@ func (m *Mongo) BeforeUpdateActivityBannerPriority(ctx *gin.Context, from, to in
} }
filter := qmgo.M{ filter := qmgo.M{
"priority": qmgo.M{ "$and": []qmgo.M{
"$and": []qmgo.M{ {
{ "priority": qmgo.M{
"$gt": from, "$gt": from,
}, },
{ },
{
"priority": qmgo.M{
"$lte": to, "$lte": to,
}, },
}, },