课程查询tags

This commit is contained in:
670788339
2025-10-31 14:48:52 +08:00
parent 5cffd908f5
commit beeb3688a1

View File

@@ -315,10 +315,10 @@ public class CourseFullTextApi extends ApiBaseController{
paras.setTags(tagIds);
}else {
String tagName = paras.getKeywords();
if (tagName != null && tagName != ""){
if (StringUtils.isNotEmpty(tagName)){
CourseTag courseTag = courseTagService.getTagByName(tagName);
if (courseTag != null){
paras.setTags(courseTag.getId().toString()+",");
paras.setTags(courseTag.getId());
}
}
}