去掉role的searchString

This commit is contained in:
orange-form
2020-06-04 23:02:29 +08:00
committed by Gitee
parent 4c59336dc4
commit 9723afce1e

View File

@@ -15,9 +15,9 @@
SELECT * FROM zz_sys_role SELECT * FROM zz_sys_role
<where> <where>
<if test="sysRoleFilter != null"> <if test="sysRoleFilter != null">
<if test="sysRoleFilter.searchString != null and sysRoleFilter.searchString != ''"> <if test="sysRoleFilter.roleName != null and sysRoleFilter.roleName != ''">
<bind name= "safeSearchString" value= "'%' + sysRoleFilter.searchString + '%'"/> <bind name= "safeRoleName" value= "'%' + sysRoleFilter.roleName + '%'"/>
AND IFNULL(role_name,'') LIKE #{safeSearchString} AND role_name LIKE #{safeRoleName}
</if> </if>
</if> </if>
AND deleted_flag = ${@com.orange.admin.common.core.constant.GlobalDeletedFlag@NORMAL} AND deleted_flag = ${@com.orange.admin.common.core.constant.GlobalDeletedFlag@NORMAL}