From ffa68734bc4483498bf56b957d4429d3d73011b7 Mon Sep 17 00:00:00 2001 From: sh Date: Mon, 1 Dec 2025 12:45:36 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9es=E6=9F=A5=E8=AF=A2=E5=B2=97?= =?UTF-8?q?=E4=BD=8D=E7=B1=BB=E5=88=AB=E6=97=B6=EF=BC=8C=E6=9D=A1=E4=BB=B6?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E7=B1=BB=E6=AF=94=E5=92=8C=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ruoyi/cms/service/impl/ESJobSearchImpl.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 ee73149..8888758 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 @@ -406,7 +406,11 @@ 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())); + //wrapper.and(x->x.eq(ESJobDocument::getJobCategory,esJobSearch.getJobCategory())); + String targetValue = esJobSearch.getJobCategory(); + wrapper.and(x -> x.like(ESJobDocument::getJobCategory, targetValue) + .or() + .like(ESJobDocument::getJobTitle, targetValue)); } if(!StringUtil.isEmptyOrNull(esJobSearch.getScale())){ Integer maxValue = StringUtil.findMaxValue(esJobSearch.getScale());