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:
@@ -372,11 +372,11 @@ public class CourseElasticsearchImpl implements ICourseFullTextSearch{
|
||||
//has.must(QueryBuilders.termsQuery("audience", ids));
|
||||
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();
|
||||
exception.must(QueryBuilders.termsQuery("sysCreateAid",params.getSysCreateAids()));
|
||||
audience.should(exception);
|
||||
}*/
|
||||
}
|
||||
//查询报名的课程
|
||||
if(params.getCourseId()!=null && params.getCourseId().length>0) {
|
||||
BoolQueryBuilder exception =QueryBuilders.boolQuery();
|
||||
|
||||
@@ -221,7 +221,9 @@ public class CourseFullTextApi extends ApiBaseController{
|
||||
if (StringUtils.isEmpty(token)) {
|
||||
token = request.getHeader("token");
|
||||
}
|
||||
log.info("根据userId查询面授课id dto.getUserId() = " + dto.getUserId() + ",token = " + token);
|
||||
List<String> offCourseId = thirdApi.getOffCourseId(dto.getUserId(),token);
|
||||
log.info("根据userId查询面授课id offCourseId.size() = " + offCourseId );
|
||||
String offCourseIds = "";
|
||||
if (!Objects.isNull(offCourseId) && offCourseId.size() > 0){
|
||||
offCourseIds = String.join(",", offCourseId);
|
||||
|
||||
Reference in New Issue
Block a user