竞争力分析报错解决

This commit is contained in:
2026-01-11 21:31:20 +08:00
parent 7f402bf3a4
commit 756f428b68

View File

@@ -502,11 +502,10 @@ public class ESJobSearchImpl implements IESJobSearchService
wrapper.and(x->x.le(ESJobDocument::getExperience_int,maxValue)); wrapper.and(x->x.le(ESJobDocument::getExperience_int,maxValue));
} }
if(!StringUtil.isEmptyOrNull(esJobSearch.getJobCategory())){ if(!StringUtil.isEmptyOrNull(esJobSearch.getJobCategory())){
//wrapper.and(x->x.eq(ESJobDocument::getJobCategory,esJobSearch.getJobCategory()));
String targetValue = esJobSearch.getJobCategory(); String targetValue = esJobSearch.getJobCategory();
wrapper.and(x -> x.like(ESJobDocument::getJobCategory, targetValue) wrapper.and(x -> x.match(ESJobDocument::getJobTitle, targetValue)
.or() .or()
.like(ESJobDocument::getJobTitle, targetValue)); .match(ESJobDocument::getDescription, targetValue));
} }
if(!StringUtil.isEmptyOrNull(esJobSearch.getScale())){ if(!StringUtil.isEmptyOrNull(esJobSearch.getScale())){
Integer maxValue = StringUtil.findMaxValue(esJobSearch.getScale()); Integer maxValue = StringUtil.findMaxValue(esJobSearch.getScale());