This commit is contained in:
parent
698a90904b
commit
f30f710981
|
@ -6364,7 +6364,17 @@ func (m *Mongo) DeleteNotifBcsts(ctx *gin.Context, ids []int64) error {
|
|||
}
|
||||
|
||||
func (m *Mongo) GetNotifBcstListByVersRange(ctx *gin.Context, vers_lb int64, vers_up int64) ([]*dbstruct.NotifBcst, error) {
|
||||
list := make([]*dbstruct.NotifBcst, 0)
|
||||
col := m.getColNotifBcst()
|
||||
query := qmgo.M{
|
||||
"del_flag": 0,
|
||||
}
|
||||
err := col.Find(ctx, query).Sort("-ct").Skip(int64(req.Offset)).Limit(int64(req.Limit)).All(&list)
|
||||
if err == qmgo.ErrNoSuchDocuments {
|
||||
err = nil
|
||||
return list, err
|
||||
}
|
||||
return list, err
|
||||
}
|
||||
|
||||
// 瑞文智商测试表相关
|
||||
|
|
Loading…
Reference in New Issue