mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-16 22:36:50 +08:00
课程受众权限暂时不上线
This commit is contained in:
@@ -356,7 +356,8 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{
|
||||
|
||||
/* 2023-08-08 不管是否是此课程受众 ,都可以搜索到 但点进课程详情提示无权限*/
|
||||
//加上Source判断,是为了应对后台查询,后台查询时,不需要权限,但是需要指定数据来源
|
||||
if(params.getSource()==null || params.getSource()==0 ) {
|
||||
/* 20231030 暂时不上线,
|
||||
if(params.getSource()==null || params.getSource()==0 ) {
|
||||
//受众权限条件,必须是有受众的课程并且受众条件不为空
|
||||
if(params.getAudiences()!=null && params.getAudiences().length>0) {
|
||||
//if(StringUtils.isNotBlank(params.getAudience())) {
|
||||
@@ -386,7 +387,7 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{
|
||||
}
|
||||
boolQuery.minimumShouldMatch(1);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
//在哪端显示
|
||||
if(params.getDevice()!=null) {
|
||||
|
||||
Reference in New Issue
Block a user