查询接口优化
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user