<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多条件模糊查询
最新推荐文章于 2024-02-27 19:46:59 发布