mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 04:16:51 +08:00
课程查询tags
This commit is contained in:
@@ -413,7 +413,7 @@ public class CourseFullTextApi extends ApiBaseController{
|
|||||||
c.setKeywordsList(keywordsList);
|
c.setKeywordsList(keywordsList);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (StringUtils.isNotBlank(c.getTags()) ){
|
if (StringUtils.isNotBlank(c.getTags()) && c.getTags().matches("[0-9,]+")) {
|
||||||
List<CourseTag> tagList = courseTagService.getTagsByIds(c.getTags());
|
List<CourseTag> tagList = courseTagService.getTagsByIds(c.getTags());
|
||||||
List<String> tags = tagList.stream().map(CourseTag::getTagName).collect(Collectors.toList());
|
List<String> tags = tagList.stream().map(CourseTag::getTagName).collect(Collectors.toList());
|
||||||
c.setTagsList(tags);
|
c.setTagsList(tags);
|
||||||
|
|||||||
Reference in New Issue
Block a user