修改HighGo数据库时mybatis like查询方式
This commit is contained in:
@@ -61,7 +61,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectCompanyList" parameterType="Company" resultMap="CompanyResult">
|
<select id="selectCompanyList" parameterType="Company" resultMap="CompanyResult">
|
||||||
<include refid="selectCompanyVo"/>
|
<include refid="selectCompanyVo"/>
|
||||||
<where> del_flag = '0'
|
<where> del_flag = '0'
|
||||||
<if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if>
|
<if test="name != null and name != ''"> and name like concat('%', cast(#{name, jdbcType=VARCHAR} as varchar), '%')</if>
|
||||||
<if test="location != null and location != ''"> and location = #{location}</if>
|
<if test="location != null and location != ''"> and location = #{location}</if>
|
||||||
<if test="industry != null and industry != ''"> and industry = #{industry}</if>
|
<if test="industry != null and industry != ''"> and industry = #{industry}</if>
|
||||||
<if test="scale != null and scale != ''"> and scale = #{scale}</if>
|
<if test="scale != null and scale != ''"> and scale = #{scale}</if>
|
||||||
|
@@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<include refid="selectJobLogVo"/>
|
<include refid="selectJobLogVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="jobName != null and jobName != ''">
|
<if test="jobName != null and jobName != ''">
|
||||||
AND job_name like concat('%', #{jobName}, '%')
|
AND job_name like concat('%', cast(#{jobName, jdbcType=VARCHAR} as varchar), '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="jobGroup != null and jobGroup != ''">
|
<if test="jobGroup != null and jobGroup != ''">
|
||||||
AND job_group = #{jobGroup}
|
AND job_group = #{jobGroup}
|
||||||
|
Reference in New Issue
Block a user