diff --git a/ruoyi-bussiness/src/main/java/com/ruoyi/cms/service/impl/ESJobSearchImpl.java b/ruoyi-bussiness/src/main/java/com/ruoyi/cms/service/impl/ESJobSearchImpl.java index 84af6ed..72c65d7 100644 --- a/ruoyi-bussiness/src/main/java/com/ruoyi/cms/service/impl/ESJobSearchImpl.java +++ b/ruoyi-bussiness/src/main/java/com/ruoyi/cms/service/impl/ESJobSearchImpl.java @@ -247,7 +247,7 @@ public class ESJobSearchImpl implements IESJobSearchService List esJobDocuments = esJobDocumentMapper.selectList(wrapper); - /*if (!isCompanyUser &&esJobDocuments.size() < esJobSearch.getPageSize()) { + if (!isCompanyUser &&esJobDocuments.size() < esJobSearch.getPageSize()) { // 定义要逐步放宽的搜索条件字段 List 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 esJobDocuments = esJobDocumentMapper.selectList(wrapper); - /*if (esJobDocuments.size() < esJobSearch.getPageSize()) { + if (esJobDocuments.size() < esJobSearch.getPageSize()) { // 定义要逐步放宽的搜索条件字段 List relaxConditions = new ArrayList<>(); relaxConditions.add(() -> newSearch.setArea(null)); @@ -869,7 +869,7 @@ public class ESJobSearchImpl implements IESJobSearchService } else { esJobDocuments = allDocuments; } - }*/ + } return esJobDocuments; }