mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 23:11:24 +08:00
Added regex search in RoleManagement
This commit is contained in:
@@ -16,7 +16,12 @@
|
||||
#{item}
|
||||
</foreach>
|
||||
<if test="searchName != null and searchName != ''">
|
||||
and instr(t_role.name, #{searchName}) > 0
|
||||
<if test="searchRegex == 1">
|
||||
and t_role.name regexp #{searchName}
|
||||
</if>
|
||||
<if test="searchRegex != 1">
|
||||
and instr(t_role.name, #{searchName}) > 0
|
||||
</if>
|
||||
</if>
|
||||
<if test="searchEnable != null and searchEnable != -1">
|
||||
and t_role.enable = #{searchEnable}
|
||||
|
||||
Reference in New Issue
Block a user