This commit is contained in:
wucongxing8150 2024-10-14 10:20:16 +08:00
parent bcaf2595a6
commit b9f10aa644

View File

@ -166,9 +166,6 @@ func (r *QuestionDao) GetQuestionPageSearch(req requests.GetQuestionPage, page,
// 构建查询条件
query := global.Db.Model(&model.Question{})
// 是否隐藏
query = query.Where("is_hide = ?", 0)
// 主键id
if req.QuestionId != "" {
query = query.Where("question_id = ?", req.QuestionId)