增加了题库不允许重复的业务逻辑5

This commit is contained in:
2025-07-29 13:14:20 +08:00
parent 57e581c4e9
commit c7f68e4edc
2 changed files with 5 additions and 3 deletions
+3 -1
View File
@@ -231,7 +231,9 @@ func (r *QuestionQaDao) GetQuestionQaListSearch(req requests.GetQuestionQaList)
}
// 类型
query = query.Where("qa_type = ?", req.QaType)
//query = query.Where("qa_type = ?", req.QaType)
query = query.Where("qa_type IN ?", []string{"1", "2", "3"})
// 状态
if req.QaStatus != nil {