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 94a54a4..9c8f49f 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 @@ -489,7 +489,7 @@ public class ESJobSearchImpl implements IESJobSearchService } if(!StringUtil.isEmptyOrNull(esJobSearch.getEducation())){ Integer maxValue = StringUtil.findMaxValue(esJobSearch.getEducation()); - wrapper.and(x->x.le(ESJobDocument::getEducation_int,maxValue)); + wrapper.and(x->x.eq(ESJobDocument::getEducation_int,maxValue)); } if(Objects.nonNull(esJobSearch.getMaxSalary())){ wrapper.and(x->x.le(ESJobDocument::getMaxSalary,esJobSearch.getMaxSalary())); @@ -499,7 +499,7 @@ public class ESJobSearchImpl implements IESJobSearchService } if(!StringUtil.isEmptyOrNull(esJobSearch.getExperience())){ Integer maxValue = StringUtil.findMaxValue(esJobSearch.getExperience()); - wrapper.and(x->x.le(ESJobDocument::getExperience_int,maxValue)); + wrapper.and(x->x.eq(ESJobDocument::getExperience_int,maxValue)); } if(!StringUtil.isEmptyOrNull(esJobSearch.getJobCategory())){ String targetValue = esJobSearch.getJobCategory();