修改放逐条件
This commit is contained in:
@@ -247,7 +247,7 @@ public class ESJobSearchImpl implements IESJobSearchService
|
||||
|
||||
List<ESJobDocument> esJobDocuments = esJobDocumentMapper.selectList(wrapper);
|
||||
|
||||
/*if (!isCompanyUser &&esJobDocuments.size() < esJobSearch.getPageSize()) {
|
||||
if (!isCompanyUser &&esJobDocuments.size() < esJobSearch.getPageSize()) {
|
||||
// 定义要逐步放宽的搜索条件字段
|
||||
List<Runnable> relaxConditions = new ArrayList<>();
|
||||
relaxConditions.add(() -> newSearch.setArea(null));
|
||||
@@ -290,7 +290,7 @@ public class ESJobSearchImpl implements IESJobSearchService
|
||||
} else {
|
||||
esJobDocuments = allDocuments;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
return esJobDocuments;
|
||||
}
|
||||
@@ -826,7 +826,7 @@ public class ESJobSearchImpl implements IESJobSearchService
|
||||
wrapper.limit(esJobSearch.getPageSize());
|
||||
List<ESJobDocument> esJobDocuments = esJobDocumentMapper.selectList(wrapper);
|
||||
|
||||
/*if (esJobDocuments.size() < esJobSearch.getPageSize()) {
|
||||
if (esJobDocuments.size() < esJobSearch.getPageSize()) {
|
||||
// 定义要逐步放宽的搜索条件字段
|
||||
List<Runnable> relaxConditions = new ArrayList<>();
|
||||
relaxConditions.add(() -> newSearch.setArea(null));
|
||||
@@ -869,7 +869,7 @@ public class ESJobSearchImpl implements IESJobSearchService
|
||||
} else {
|
||||
esJobDocuments = allDocuments;
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
return esJobDocuments;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user