From d57ce9e3fc45b5f861779f9697369fb49e4824cf Mon Sep 17 00:00:00 2001 From: sh Date: Wed, 22 Oct 2025 15:28:32 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=B2=97=E4=BD=8D?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2-=E6=B7=BB=E5=8A=A0=E4=BA=94=E9=99=A9?= =?UTF-8?q?=E4=B8=80=E9=87=91=E3=80=81=E4=BC=81=E4=B8=9A=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=9D=A1=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/cms/service/impl/ESJobSearchImpl.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 73d66db..801230c 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 @@ -178,6 +178,12 @@ public class ESJobSearchImpl implements IESJobSearchService if(!StringUtil.isEmptyOrNull(esJobSearch.getType())){ newSearch.setType(esJobSearch.getType()); } + if(!StringUtil.isEmptyOrNull(esJobSearch.getDescription())){ + newSearch.setDescription(esJobSearch.getDescription()); + } + if(!StringUtil.isEmptyOrNull(esJobSearch.getCompanyNature())){ + newSearch.setCompanyNature(esJobSearch.getCompanyNature()); + } } LambdaEsQueryWrapper wrapper = getWrapper(newSearch,jobIds); @@ -405,6 +411,12 @@ public class ESJobSearchImpl implements IESJobSearchService if(!StringUtil.isEmptyOrNull(esJobSearch.getType())){ wrapper.and(x->x.eq(ESJobDocument::getType,esJobSearch.getType())); } + if(!StringUtil.isEmptyOrNull(esJobSearch.getDescription())){ + wrapper.and(x->x.like(ESJobDocument::getDescription,esJobSearch.getDescription())); + } + if(!StringUtil.isEmptyOrNull(esJobSearch.getCompanyNature())){ + wrapper.and(x->x.eq(ESJobDocument::getCompanyNature,esJobSearch.getCompanyNature())); + } if(Objects.nonNull(esJobSearch.getOrder())){ if(esJobSearch.getOrder()==1){ wrapper.orderByDesc(ESJobDocument::getIsHot);