From ba0a1731e4c334cf8832b71d128afffaf6debd00 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Thu, 19 Sep 2024 14:57:27 +0800 Subject: [PATCH] 55555 --- api/dao/Question.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/dao/Question.go b/api/dao/Question.go index bf4ce6e..691bcdd 100644 --- a/api/dao/Question.go +++ b/api/dao/Question.go @@ -128,6 +128,9 @@ func (r *QuestionDao) GetQuestionPageSearch(req requests.GetQuestionPage, page, // 是否隐藏 query = query.Where("is_hide = ?", 0) + // 问题状态 + query = query.Where("question_status = ?", 1) + // 主键id if req.QuestionId != "" { query = query.Where("question_id = ?", req.QuestionId)