From e3975f557eabd15746d6b704129ed70570ef2914 Mon Sep 17 00:00:00 2001 From: sh Date: Tue, 14 Oct 2025 14:57:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9HighGo=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E6=97=B6mybatis=20like=E6=9F=A5=E8=AF=A2=E6=96=B9?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-bussiness/src/main/resources/mapper/app/JobMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-bussiness/src/main/resources/mapper/app/JobMapper.xml b/ruoyi-bussiness/src/main/resources/mapper/app/JobMapper.xml index fe857b4..3559467 100644 --- a/ruoyi-bussiness/src/main/resources/mapper/app/JobMapper.xml +++ b/ruoyi-bussiness/src/main/resources/mapper/app/JobMapper.xml @@ -125,7 +125,7 @@ and max_salary = #{maxSalary} and education = #{education} and experience = #{experience} - and company_name like concat('%', #{companyName}, '%') + and company_name like concat('%', cast(#{companyName, jdbcType=VARCHAR} as varchar), '%') and job_location = #{jobLocation} and posting_date = #{postingDate} and vacancies = #{vacancies} @@ -167,7 +167,7 @@ and max_salary = #{maxSalary} and education = #{education} and experience = #{experience} - and company_name like concat('%', #{companyName}, '%') + and company_name like concat('%', cast(#{companyName, jdbcType=VARCHAR} as varchar), '%') and job_location = #{jobLocation} and posting_date = #{postingDate} and vacancies = #{vacancies}