修改按名称查询报错的问题
This commit is contained in:
@@ -31,7 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<include refid="selectNoticeVo"/>
|
||||
<where>
|
||||
<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 test="noticeType != null and noticeType != ''">
|
||||
AND notice_type = #{noticeType}
|
||||
|
||||
@@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
AND dict_type = #{dictType}
|
||||
</if>
|
||||
<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 test="status != null and status != ''">
|
||||
AND status = #{status}
|
||||
|
||||
@@ -30,7 +30,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="selectJobFairList" parameterType="JobFair" resultMap="JobFairResult">
|
||||
<include refid="selectJobFairVo"/>
|
||||
<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="location != null and location != ''"> and location = #{location}</if>
|
||||
<if test="latitude != null "> and latitude = #{latitude}</if>
|
||||
|
||||
@@ -25,7 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<include refid="selectJobTitleVo"/>
|
||||
<where> del_flag = '0'
|
||||
<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="status != null and status != ''"> and status = #{status}</if>
|
||||
</where>
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
<select id="selectSensitiveworddataList" resultMap="sensitiveWordDataResult" parameterType="SensitiveWordData">
|
||||
<include refid="sensitiveWordDataVo"/>
|
||||
<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>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
@@ -34,7 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<select id="selectSubwayLineList" parameterType="SubwayLine" resultMap="SubwayLineResult">
|
||||
<include refid="selectSubwayLineVo"/>
|
||||
<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>
|
||||
</select>
|
||||
<select id="appSubway" resultMap="SubwayLineStationResult">
|
||||
|
||||
Reference in New Issue
Block a user