This commit is contained in:
wucongxing8150 2024-09-19 14:57:27 +08:00
parent dcb3d0b33f
commit ba0a1731e4

View File

@ -128,6 +128,9 @@ func (r *QuestionDao) GetQuestionPageSearch(req requests.GetQuestionPage, page,
// 是否隐藏 // 是否隐藏
query = query.Where("is_hide = ?", 0) query = query.Where("is_hide = ?", 0)
// 问题状态
query = query.Where("question_status = ?", 1)
// 主键id // 主键id
if req.QuestionId != "" { if req.QuestionId != "" {
query = query.Where("question_id = ?", req.QuestionId) query = query.Where("question_id = ?", req.QuestionId)