From af1d5137ad272b1e0b4ea4f979764ab22ae94aa1 Mon Sep 17 00:00:00 2001 From: Robin <7434053+warrior_of_light_robin@user.noreply.gitee.com> Date: Fri, 22 Nov 2024 16:10:52 +0800 Subject: [PATCH] 1 --- app/mix/dao/mongo.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/mix/dao/mongo.go b/app/mix/dao/mongo.go index eb07c6a4..8dccfe78 100644 --- a/app/mix/dao/mongo.go +++ b/app/mix/dao/mongo.go @@ -1653,7 +1653,8 @@ func (m *Mongo) GetMomentListByStatus(ctx *gin.Context, status int64, limit, off col := m.getColMoment() // 这个接口是用来查审核任务的前置接口,所以必须要把删除的也查出来 query := qmgo.M{ - "status": status, + "status": status, + "del_flag": 0, } err := col.Find(ctx, query).Sort("-ut").Skip(int64(offset)).Limit(int64(limit)).All(&list) if err == qmgo.ErrNoSuchDocuments { -- 2.41.0