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}