1.用户,角色名称查询修改为全模糊查询

master
x_z 3 years ago
parent 55bf8f3115
commit 41ed3487c7

@ -18,7 +18,7 @@
AND userFlag = #{userFlag} AND userFlag = #{userFlag}
</if> </if>
<if test="userName != null and '' != userName"> <if test="userName != null and '' != userName">
AND userName LIKE CONCAT(#{userName},'%') AND userName LIKE CONCAT('%',#{userName},'%')
</if> </if>
<if test="CustomerId != null"> <if test="CustomerId != null">

@ -12,7 +12,7 @@
AND status = #{status} AND status = #{status}
</if> </if>
<if test="name != null and '' != name"> <if test="name != null and '' != name">
AND `name` LIKE CONCAT(#{name},'%') AND `name` LIKE CONCAT('%',#{name},'%')
</if> </if>
</where> </where>
</select> </select>

Loading…
Cancel
Save