mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-12 04:16:51 +08:00
提交对全文检索的修改
This commit is contained in:
@@ -280,6 +280,11 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{
|
||||
if(StringUtils.isNotBlank(params.getSysType3())) {
|
||||
boolQuery.filter(QueryBuilders.termQuery("sysType3", params.getSysType3()));
|
||||
}
|
||||
//增加companyId过滤
|
||||
if(StringUtils.isNotBlank(params.getCompanyId())) {
|
||||
boolQuery.filter(QueryBuilders.termQuery("companyId", params.getCompanyId()));
|
||||
}
|
||||
|
||||
|
||||
//加上Source判断,是为了应对后台查询,后台查询时,不需要权限,但是需要指定数据来源
|
||||
if(params.getSource()==null || params.getSource()==0 ) {
|
||||
|
||||
Reference in New Issue
Block a user