mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-07 01:46:47 +08:00
加日志
This commit is contained in:
@@ -372,11 +372,11 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{
|
|||||||
//has.must(QueryBuilders.termsQuery("audience", ids));
|
//has.must(QueryBuilders.termsQuery("audience", ids));
|
||||||
has.must(QueryBuilders.termsQuery("audiences", params.getAudiences()));
|
has.must(QueryBuilders.termsQuery("audiences", params.getAudiences()));
|
||||||
//查询出例外人员创建的课程
|
//查询出例外人员创建的课程
|
||||||
/*if(params.getSysCreateAids()!=null && params.getSysCreateAids().length>0) {
|
if(params.getSysCreateAids()!=null && params.getSysCreateAids().length>0) {
|
||||||
BoolQueryBuilder exception =QueryBuilders.boolQuery();
|
BoolQueryBuilder exception =QueryBuilders.boolQuery();
|
||||||
exception.must(QueryBuilders.termsQuery("sysCreateAid",params.getSysCreateAids()));
|
exception.must(QueryBuilders.termsQuery("sysCreateAid",params.getSysCreateAids()));
|
||||||
audience.should(exception);
|
audience.should(exception);
|
||||||
}*/
|
}
|
||||||
//查询报名的课程
|
//查询报名的课程
|
||||||
if(params.getCourseId()!=null && params.getCourseId().length>0) {
|
if(params.getCourseId()!=null && params.getCourseId().length>0) {
|
||||||
BoolQueryBuilder exception =QueryBuilders.boolQuery();
|
BoolQueryBuilder exception =QueryBuilders.boolQuery();
|
||||||
|
|||||||
@@ -221,7 +221,9 @@ public class CourseFullTextApi extends ApiBaseController{
|
|||||||
if (StringUtils.isEmpty(token)) {
|
if (StringUtils.isEmpty(token)) {
|
||||||
token = request.getHeader("token");
|
token = request.getHeader("token");
|
||||||
}
|
}
|
||||||
|
log.info("根据userId查询面授课id dto.getUserId() = " + dto.getUserId() + ",token = " + token);
|
||||||
List<String> offCourseId = thirdApi.getOffCourseId(dto.getUserId(),token);
|
List<String> offCourseId = thirdApi.getOffCourseId(dto.getUserId(),token);
|
||||||
|
log.info("根据userId查询面授课id offCourseId.size() = " + offCourseId );
|
||||||
String offCourseIds = "";
|
String offCourseIds = "";
|
||||||
if (!Objects.isNull(offCourseId) && offCourseId.size() > 0){
|
if (!Objects.isNull(offCourseId) && offCourseId.size() > 0){
|
||||||
offCourseIds = String.join(",", offCourseId);
|
offCourseIds = String.join(",", offCourseId);
|
||||||
|
|||||||
Reference in New Issue
Block a user