From 1649c59dabdf7192903581699a4193047f190a67 Mon Sep 17 00:00:00 2001 From: wucongxing8150 <815046773@qq.com> Date: Mon, 4 Nov 2024 15:37:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E4=BA=86=E9=A2=98=E5=BA=93=E7=B1=BB=E5=9E=8B2=E3=80=813=2011?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/dao/QuestionQa.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/dao/QuestionQa.go b/api/dao/QuestionQa.go index cf6e7b4..8846207 100644 --- a/api/dao/QuestionQa.go +++ b/api/dao/QuestionQa.go @@ -109,6 +109,9 @@ func (r *QuestionQaDao) GetQuestionQaPageSearch(req requests.GetQuestionQaPage, query = query.Where("qa_name LIKE ?", "%"+req.QaName+"%") } + // 类型 + query = query.Where("qa_type = ?", req.QaType) + // 状态 if req.QaStatus != nil { query = query.Where("qa_status = ?", req.QaStatus)