修改按名称查询报错的问题
This commit is contained in:
@@ -31,7 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<include refid="selectNoticeVo"/>
|
<include refid="selectNoticeVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="noticeTitle != null and noticeTitle != ''">
|
<if test="noticeTitle != null and noticeTitle != ''">
|
||||||
AND notice_title like concat('%', #{noticeTitle}, '%')
|
AND notice_title like concat('%', cast(#{noticeTitle, jdbcType=VARCHAR} as varchar), '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="noticeType != null and noticeType != ''">
|
<if test="noticeType != null and noticeType != ''">
|
||||||
AND notice_type = #{noticeType}
|
AND notice_type = #{noticeType}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND dict_type = #{dictType}
|
AND dict_type = #{dictType}
|
||||||
</if>
|
</if>
|
||||||
<if test="dictLabel != null and dictLabel != ''">
|
<if test="dictLabel != null and dictLabel != ''">
|
||||||
AND dict_label like concat('%', #{dictLabel}, '%')
|
AND dict_label like concat('%', cast(#{dictLabel, jdbcType=VARCHAR} as varchar), '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null and status != ''">
|
<if test="status != null and status != ''">
|
||||||
AND status = #{status}
|
AND status = #{status}
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectJobFairList" parameterType="JobFair" resultMap="JobFairResult">
|
<select id="selectJobFairList" parameterType="JobFair" resultMap="JobFairResult">
|
||||||
<include refid="selectJobFairVo"/>
|
<include refid="selectJobFairVo"/>
|
||||||
<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="jobFairType != null and jobFairType != ''"> and job_fair_type = #{jobFairType}</if>
|
<if test="jobFairType != null and jobFairType != ''"> and job_fair_type = #{jobFairType}</if>
|
||||||
<if test="location != null and location != ''"> and location = #{location}</if>
|
<if test="location != null and location != ''"> and location = #{location}</if>
|
||||||
<if test="latitude != null "> and latitude = #{latitude}</if>
|
<if test="latitude != null "> and latitude = #{latitude}</if>
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<include refid="selectJobTitleVo"/>
|
<include refid="selectJobTitleVo"/>
|
||||||
<where> del_flag = '0'
|
<where> del_flag = '0'
|
||||||
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
<if test="parentId != null "> and parent_id = #{parentId}</if>
|
||||||
<if test="jobName != null and jobName != ''"> and job_name like concat('%', #{jobName}, '%')</if>
|
<if test="jobName != null and jobName != ''"> and job_name like concat('%', cast(#{jobName, jdbcType=VARCHAR} as varchar), '%')</if>
|
||||||
<if test="orderNum != null "> and order_num = #{orderNum}</if>
|
<if test="orderNum != null "> and order_num = #{orderNum}</if>
|
||||||
<if test="status != null and status != ''"> and status = #{status}</if>
|
<if test="status != null and status != ''"> and status = #{status}</if>
|
||||||
</where>
|
</where>
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
<select id="selectSensitiveworddataList" resultMap="sensitiveWordDataResult" parameterType="SensitiveWordData">
|
<select id="selectSensitiveworddataList" resultMap="sensitiveWordDataResult" parameterType="SensitiveWordData">
|
||||||
<include refid="sensitiveWordDataVo"/>
|
<include refid="sensitiveWordDataVo"/>
|
||||||
<where> del_flag = '0'
|
<where> del_flag = '0'
|
||||||
<if test="sensitiveWord != null and sensitiveWord != ''"> and sensitive_word like concat('%', #{sensitiveWord}, '%')</if>
|
<if test="sensitiveWord != null and sensitiveWord != ''"> and sensitive_word like concat('%', cast(#{sensitiveWord, jdbcType=VARCHAR} as varchar), '%')</if>
|
||||||
<if test="type != null and type != ''"> and type = #{type}</if>
|
<if test="type != null and type != ''"> and type = #{type}</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<select id="selectSubwayLineList" parameterType="SubwayLine" resultMap="SubwayLineResult">
|
<select id="selectSubwayLineList" parameterType="SubwayLine" resultMap="SubwayLineResult">
|
||||||
<include refid="selectSubwayLineVo"/>
|
<include refid="selectSubwayLineVo"/>
|
||||||
<where> del_flag = '0'
|
<where> del_flag = '0'
|
||||||
<if test="lineName != null and lineName != ''"> and line_name like concat('%', #{lineName}, '%')</if>
|
<if test="lineName != null and lineName != ''"> and line_name like concat('%', cast(#{lineName, jdbcType=VARCHAR} as varchar), '%')</if>
|
||||||
</where>
|
</where>
|
||||||
</select>
|
</select>
|
||||||
<select id="appSubway" resultMap="SubwayLineStationResult">
|
<select id="appSubway" resultMap="SubwayLineStationResult">
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<include refid="selectJobVo"/>
|
<include refid="selectJobVo"/>
|
||||||
<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}
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<include refid="selectConfigVo"/>
|
<include refid="selectConfigVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="configName != null and configName != ''">
|
<if test="configName != null and configName != ''">
|
||||||
AND config_name like concat('%', #{configName}, '%')
|
AND config_name like concat('%', cast(#{configName, jdbcType=VARCHAR} as varchar), '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="configType != null and configType != ''">
|
<if test="configType != null and configType != ''">
|
||||||
AND config_type = #{configType}
|
AND config_type = #{configType}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND parent_id = #{parentId}
|
AND parent_id = #{parentId}
|
||||||
</if>
|
</if>
|
||||||
<if test="deptName != null and deptName != ''">
|
<if test="deptName != null and deptName != ''">
|
||||||
AND dept_name like concat('%', #{deptName}, '%')
|
AND dept_name like concat('%', cast(#{deptName, jdbcType=VARCHAR} as varchar), '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null and status != ''">
|
<if test="status != null and status != ''">
|
||||||
AND status = #{status}
|
AND status = #{status}
|
||||||
|
|||||||
@@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND dict_type = #{dictType}
|
AND dict_type = #{dictType}
|
||||||
</if>
|
</if>
|
||||||
<if test="dictLabel != null and dictLabel != ''">
|
<if test="dictLabel != null and dictLabel != ''">
|
||||||
AND dict_label like concat('%', #{dictLabel}, '%')
|
AND dict_label like concat('%', cast(#{dictLabel, jdbcType=VARCHAR} as varchar), '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null and status != ''">
|
<if test="status != null and status != ''">
|
||||||
AND status = #{status}
|
AND status = #{status}
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
<include refid="selectDictTypeVo"/>
|
<include refid="selectDictTypeVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="dictName != null and dictName != ''">
|
<if test="dictName != null and dictName != ''">
|
||||||
AND dict_name like concat('%', #{dictName}, '%')
|
AND dict_name like concat('%', cast(#{dictName, jdbcType=VARCHAR} as varchar), '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null and status != ''">
|
<if test="status != null and status != ''">
|
||||||
AND status = #{status}
|
AND status = #{status}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@
|
|||||||
<include refid="selectMenuVo"/>
|
<include refid="selectMenuVo"/>
|
||||||
<where>
|
<where>
|
||||||
<if test="menuName != null and menuName != ''">
|
<if test="menuName != null and menuName != ''">
|
||||||
AND menu_name like concat('%', #{menuName}, '%')
|
AND menu_name like concat('%', cast(#{menuName, jdbcType=VARCHAR} as varchar), '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="visible != null and visible != ''">
|
<if test="visible != null and visible != ''">
|
||||||
AND visible = #{visible}
|
AND visible = #{visible}
|
||||||
|
|||||||
@@ -37,7 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
AND r.role_id = #{roleId}
|
AND r.role_id = #{roleId}
|
||||||
</if>
|
</if>
|
||||||
<if test="roleName != null and roleName != ''">
|
<if test="roleName != null and roleName != ''">
|
||||||
AND r.role_name like concat('%', #{roleName}, '%')
|
AND r.role_name like concat('%', cast(#{roleName, jdbcType=VARCHAR} as varchar), '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="status != null and status != ''">
|
<if test="status != null and status != ''">
|
||||||
AND r.status = #{status}
|
AND r.status = #{status}
|
||||||
|
|||||||
Reference in New Issue
Block a user