1
This commit is contained in:
parent
bcaf2595a6
commit
b9f10aa644
@ -166,9 +166,6 @@ func (r *QuestionDao) GetQuestionPageSearch(req requests.GetQuestionPage, page,
|
|||||||
// 构建查询条件
|
// 构建查询条件
|
||||||
query := global.Db.Model(&model.Question{})
|
query := global.Db.Model(&model.Question{})
|
||||||
|
|
||||||
// 是否隐藏
|
|
||||||
query = query.Where("is_hide = ?", 0)
|
|
||||||
|
|
||||||
// 主键id
|
// 主键id
|
||||||
if req.QuestionId != "" {
|
if req.QuestionId != "" {
|
||||||
query = query.Where("question_id = ?", req.QuestionId)
|
query = query.Where("question_id = ?", req.QuestionId)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user