修改HighGo数据库时mybatis like查询方式
This commit is contained in:
@@ -125,7 +125,7 @@
|
||||
<if test="maxSalary != null "> and max_salary = #{maxSalary}</if>
|
||||
<if test="education != null and education != ''"> and education = #{education}</if>
|
||||
<if test="experience != null and experience != ''"> and experience = #{experience}</if>
|
||||
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
|
||||
<if test="companyName != null and companyName != ''"> and company_name like concat('%', cast(#{companyName, jdbcType=VARCHAR} as varchar), '%')</if>
|
||||
<if test="jobLocation != null and jobLocation != ''"> and job_location = #{jobLocation}</if>
|
||||
<if test="postingDate != null and postingDate!=''"> and posting_date = #{postingDate}</if>
|
||||
<if test="vacancies != null "> and vacancies = #{vacancies}</if>
|
||||
@@ -167,7 +167,7 @@
|
||||
<if test="maxSalary != null "> and max_salary = #{maxSalary}</if>
|
||||
<if test="education != null and education != ''"> and education = #{education}</if>
|
||||
<if test="experience != null and experience != ''"> and experience = #{experience}</if>
|
||||
<if test="companyName != null and companyName != ''"> and company_name like concat('%', #{companyName}, '%')</if>
|
||||
<if test="companyName != null and companyName != ''"> and company_name like concat('%', cast(#{companyName, jdbcType=VARCHAR} as varchar), '%')</if>
|
||||
<if test="jobLocation != null and jobLocation != ''"> and job_location = #{jobLocation}</if>
|
||||
<if test="postingDate != null and postingDate!='' "> and posting_date = #{postingDate}</if>
|
||||
<if test="vacancies != null "> and vacancies = #{vacancies}</if>
|
||||
|
Reference in New Issue
Block a user