From fe32de47919e81cbeacd6fa36af4afdca770d02e Mon Sep 17 00:00:00 2001 From: sh Date: Thu, 22 Jan 2026 15:55:10 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9es=E6=9F=A5=E8=AF=A2=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cms/service/impl/ESJobSearchImpl.java | 21 ++++++++++++++++--- 1 file changed, 18 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 15ba33d..f5170ab 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 @@ -531,9 +531,6 @@ public class ESJobSearchImpl implements IESJobSearchService if(!StringUtil.isEmptyOrNull(esJobSearch.getCode())){ wrapper.and(x->x.eq(ESJobDocument::getCode,esJobSearch.getCode())); } - if(!StringUtil.isEmptyOrNull(esJobSearch.getType())){ - wrapper.and(x->x.eq(ESJobDocument::getType,esJobSearch.getType())); - } if(esJobSearch.getJobId()!=null){ wrapper.and(x->x.eq(ESJobDocument::getJobId,esJobSearch.getJobId())); } @@ -620,6 +617,24 @@ public class ESJobSearchImpl implements IESJobSearchService if(!StringUtil.isEmptyOrNull(jobQuery.getType())){ wrapper.and(a->a.eq(ESJobDocument::getType,jobQuery.getType())); } + if(!StringUtil.isEmptyOrNull(jobQuery.getJobType())){ + wrapper.and(a->a.eq(ESJobDocument::getJobType,jobQuery.getJobType())); + } + if(!StringUtil.isEmptyOrNull(jobQuery.getDescription())){ + wrapper.and(x->x.like(ESJobDocument::getDescription,jobQuery.getDescription())); + } + if(!StringUtil.isEmptyOrNull(jobQuery.getCode())){ + wrapper.and(x->x.eq(ESJobDocument::getCode,jobQuery.getCode())); + } + if(jobQuery.getJobId()!=null){ + wrapper.and(x->x.eq(ESJobDocument::getJobId,jobQuery.getJobId())); + } + if(!StringUtil.isEmptyOrNull(jobQuery.getJobAddress())){ + wrapper.and(x->x.like(ESJobDocument::getJobAddress,jobQuery.getJobAddress())); + } + if(!StringUtil.isEmptyOrNull(jobQuery.getJobLocation())){ + wrapper.and(x->x.like(ESJobDocument::getJobLocation,jobQuery.getJobLocation())); + } if(Objects.nonNull(jobQuery.getOrder())){ if (jobQuery.getOrder()==2){ wrapper.orderByDesc(ESJobDocument::getPostingDate);