A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
update GetTagListByName
aichy1266da8c3c2d893
diff --git a/internal/repo/tag_common/tag_common_repo.go b/internal/repo/tag_common/tag_common_repo.goindex 510658b5..0c357c32 100644--- a/internal/repo/tag_common/tag_common_repo.go+++ b/internal/repo/tag_common/tag_common_repo.go@@ -60,7 +60,7 @@ func (tr *tagCommonRepo) GetTagListByName(ctx context.Context, name string, hasRcond := &entity.Tag{}session := tr.data.DB.Where("")if name != "" {- session.Where("slug_name LIKE ?", name+"%")+ session.Where("slug_name LIKE ? or display_name LIKE ?", name+"%", name+"%")} else {session.UseBool("recommend")cond.Recommend = true