1
0
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:
2023-06-04 03:47:46 +08:00
parent 424a6eb330
commit 20fe3a6fa2
6 changed files with 61 additions and 13 deletions

View File

@@ -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}