加日志

This commit is contained in:
joshen@zcwytd.com
2023-11-24 18:39:32 +08:00
parent 339062748b
commit 3bcc848b7c
2 changed files with 4 additions and 2 deletions

View File

@@ -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();

View File

@@ -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);