This commit is contained in:
2024-10-21 15:26:03 +08:00
parent 8ec3b65494
commit 8d418d567a
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -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)