mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 03:46:50 +08:00
课程查询tags
This commit is contained in:
@@ -315,10 +315,10 @@ public class CourseFullTextApi extends ApiBaseController{
|
|||||||
paras.setTags(tagIds);
|
paras.setTags(tagIds);
|
||||||
}else {
|
}else {
|
||||||
String tagName = paras.getKeywords();
|
String tagName = paras.getKeywords();
|
||||||
if (tagName != null && tagName != ""){
|
if (StringUtils.isNotEmpty(tagName)){
|
||||||
CourseTag courseTag = courseTagService.getTagByName(tagName);
|
CourseTag courseTag = courseTagService.getTagByName(tagName);
|
||||||
if (courseTag != null){
|
if (courseTag != null){
|
||||||
paras.setTags(courseTag.getId().toString()+",");
|
paras.setTags(courseTag.getId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user