diff --git a/modules/boe-module-es/src/main/java/com/xboe/module/elasticsearc/CourseElasticsearchImpl.java b/modules/boe-module-es/src/main/java/com/xboe/module/elasticsearc/CourseElasticsearchImpl.java index 473e6951..cdcf7c78 100644 --- a/modules/boe-module-es/src/main/java/com/xboe/module/elasticsearc/CourseElasticsearchImpl.java +++ b/modules/boe-module-es/src/main/java/com/xboe/module/elasticsearc/CourseElasticsearchImpl.java @@ -382,9 +382,9 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{ //如果当前用户无受众,只能查询未设置受众的课程 boolQuery.should(QueryBuilders.termQuery("isSetAudience",0)); if(params.getSysCreateAids()!=null && params.getSysCreateAids().length>0) { - boolQuery.should(QueryBuilders.termQuery("sysCreateAid",params.getSysCreateAids())); - + boolQuery.should(QueryBuilders.termsQuery("sysCreateAid",params.getSysCreateAids())); } + boolQuery.minimumShouldMatch(1); } } diff --git a/servers/boe-server-all/pom.xml b/servers/boe-server-all/pom.xml index e0406c88..37247eb9 100644 --- a/servers/boe-server-all/pom.xml +++ b/servers/boe-server-all/pom.xml @@ -17,26 +17,26 @@ 1.8 2021.0.5 2021.0.5.0 - 2.2.0 + - - com.alibaba.cloud - spring-cloud-starter-alibaba-nacos-discovery - ${spring-cloud-alibaba.version} - - - com.alibaba.nacos - nacos-client - - - - - com.alibaba.nacos - nacos-client - ${nacos-client.version} - + + + + + + + + + + + + + + + + org.apache.poi