by Robin at 20241213
This commit is contained in:
parent
b509ee7de5
commit
65d1dfa03e
|
@ -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,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue