bugfix-企业登录注册
This commit is contained in:
@@ -491,11 +491,13 @@ public class ESJobSearchImpl implements IESJobSearchService
|
|||||||
Integer maxValue = StringUtil.findMaxValue(esJobSearch.getEducation());
|
Integer maxValue = StringUtil.findMaxValue(esJobSearch.getEducation());
|
||||||
wrapper.and(x->x.eq(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()));
|
|
||||||
}
|
|
||||||
if(Objects.nonNull(esJobSearch.getMinSalary())){
|
if(Objects.nonNull(esJobSearch.getMinSalary())){
|
||||||
wrapper.and(x->x.ge(ESJobDocument::getMinSalary,esJobSearch.getMinSalary()));
|
wrapper.and(x->x.ge(ESJobDocument::getMaxSalary,esJobSearch.getMinSalary()));
|
||||||
|
}
|
||||||
|
// 用户传入最大薪资:查询岗位最小薪资 <= 用户最大薪资(岗位薪资下限不能超过用户预算)
|
||||||
|
if(Objects.nonNull(esJobSearch.getMaxSalary())){
|
||||||
|
wrapper.and(x->x.le(ESJobDocument::getMinSalary,esJobSearch.getMaxSalary()));
|
||||||
}
|
}
|
||||||
if(!StringUtil.isEmptyOrNull(esJobSearch.getExperience())){
|
if(!StringUtil.isEmptyOrNull(esJobSearch.getExperience())){
|
||||||
Integer maxValue = StringUtil.findMaxValue(esJobSearch.getExperience());
|
Integer maxValue = StringUtil.findMaxValue(esJobSearch.getExperience());
|
||||||
|
|||||||
Reference in New Issue
Block a user