查询接口优化

This commit is contained in:
2026-01-12 01:02:09 +08:00
parent d73847912d
commit daa3b9f2c2

View File

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