mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-09 02:46:50 +08:00
课程查询tags
This commit is contained in:
@@ -311,12 +311,15 @@ public class CourseFullTextApi extends ApiBaseController{
|
||||
|
||||
paras.setDevice(dto.getDevice());
|
||||
String tagIds = dto.getTags();
|
||||
log.info("课程查询 tagIds = " + tagIds);
|
||||
if (tagIds != null && tagIds != ""){
|
||||
paras.setTags(tagIds);
|
||||
}else {
|
||||
String tagName = paras.getKeywords();
|
||||
String tagName = dto.getKeyword();
|
||||
log.info("课程查询 关键字 = " + tagName);
|
||||
if (StringUtils.isNotEmpty(tagName)){
|
||||
CourseTag courseTag = courseTagService.getTagByName(tagName);
|
||||
log.info("课程查询 关键字对应标签 = " + courseTag);
|
||||
if (courseTag != null){
|
||||
paras.setTags(courseTag.getId());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user