From 756f428b6855e774862a78bcb11838e099b9c9d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=A1=BA=E4=B8=9C?= <577732344@qq.com> Date: Sun, 11 Jan 2026 21:31:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=9E=E4=BA=89=E5=8A=9B=E5=88=86=E6=9E=90?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E8=A7=A3=E5=86=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/cms/service/impl/ESJobSearchImpl.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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 3390c8a..fdd3889 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 @@ -502,11 +502,10 @@ public class ESJobSearchImpl implements IESJobSearchService wrapper.and(x->x.le(ESJobDocument::getExperience_int,maxValue)); } if(!StringUtil.isEmptyOrNull(esJobSearch.getJobCategory())){ - //wrapper.and(x->x.eq(ESJobDocument::getJobCategory,esJobSearch.getJobCategory())); String targetValue = esJobSearch.getJobCategory(); - wrapper.and(x -> x.like(ESJobDocument::getJobCategory, targetValue) + wrapper.and(x -> x.match(ESJobDocument::getJobTitle, targetValue) .or() - .like(ESJobDocument::getJobTitle, targetValue)); + .match(ESJobDocument::getDescription, targetValue)); } if(!StringUtil.isEmptyOrNull(esJobSearch.getScale())){ Integer maxValue = StringUtil.findMaxValue(esJobSearch.getScale());