44
This commit is contained in:
@@ -179,7 +179,7 @@ func (r *QuestionQaItemDao) GetQuestionQaItemPageSearch(req requests.GetQuestion
|
||||
}
|
||||
|
||||
// 一级标签id
|
||||
if req.FirstLabelId != nil {
|
||||
if req.FirstLabelId != "" {
|
||||
subQuery := global.Db.Model(&model.Question{}).
|
||||
Select("question_id").
|
||||
Where("first_label_id = ?", req.FirstLabelId)
|
||||
@@ -188,7 +188,7 @@ func (r *QuestionQaItemDao) GetQuestionQaItemPageSearch(req requests.GetQuestion
|
||||
}
|
||||
|
||||
// 二级标签id
|
||||
if req.SecondLabelId != nil {
|
||||
if req.SecondLabelId != "" {
|
||||
subQuery := global.Db.Model(&model.Question{}).
|
||||
Select("question_id").
|
||||
Where("second_label_id = ?", req.SecondLabelId)
|
||||
|
||||
Reference in New Issue
Block a user