mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-06 09:26:48 +08:00
加入例外人员为空的判断
This commit is contained in:
@@ -612,9 +612,12 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{
|
||||
sourceBuilder.query(boolQuery);
|
||||
}
|
||||
// 查出例外人员
|
||||
BoolQueryBuilder builder= QueryBuilders.boolQuery();
|
||||
builder.should(QueryBuilders.termsQuery("sysCreateAid",paras.getSysCreateAids()));
|
||||
sourceBuilder.query(builder);
|
||||
if(paras.getSysCreateAids()!=null&¶s.getSysCreateAids().length>0){
|
||||
BoolQueryBuilder builder= QueryBuilders.boolQuery();
|
||||
builder.should(QueryBuilders.termsQuery("sysCreateAid",paras.getSysCreateAids()));
|
||||
sourceBuilder.query(builder);
|
||||
}
|
||||
|
||||
|
||||
|
||||
//排序
|
||||
|
||||
Reference in New Issue
Block a user