<select id="selectUserList" parameterType="cn.vipkes.dao.dto.param.UserListDto" resultType="cn.vipkes.dao.dto.result.UserListResult">
SELECT USER_NAME as userName
FROM USER
WHERE DEL_FLG = 0
<if test="userName != null and userName != ''">
AND USER_NAME LIKE '%'||#{userName}||'%'
</if>
<if test="address != null and address != ''">
AND ADDRESS LIKE '%'||#{address}||'%'
</if>
</select>
mybatis多条件模糊查询
猜你喜欢
转载自blog.csdn.net/pk694046220/article/details/84283817
今日推荐
周排行