3
This commit is contained in:
parent
092eae4066
commit
822ed4f2a5
@ -196,6 +196,11 @@ func (r *QuestionDao) GetQuestionPageSearch(req requests.GetQuestionPage, page,
|
||||
query = query.Where("is_recommend = ?", req.IsRecommend)
|
||||
}
|
||||
|
||||
// 是否隐藏
|
||||
if req.IsHide != nil {
|
||||
query = query.Where("is_hide = ?", req.IsHide)
|
||||
}
|
||||
|
||||
// 问题介绍
|
||||
if req.QuestionBrief != "" {
|
||||
query = query.Where("question_brief LIKE ?", "%"+req.QuestionBrief+"%")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user