1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 23:11:24 +08:00

Added regex search in UserManagement

This commit is contained in:
2023-06-04 04:03:56 +08:00
parent d8161667f9
commit 78b9389ebf
8 changed files with 68 additions and 21 deletions

View File

@@ -22,7 +22,12 @@
#{item}
</foreach>
<if test="searchName != null and searchName != ''">
and instr(t_user.username, #{searchName}) > 0
<if test="searchRegex == 1">
and t_user.username regexp #{searchName}
</if>
<if test="searchRegex != 1">
and instr(t_user.username, #{searchName}) > 0
</if>
</if>
<if test="searchEnable != null and searchEnable != -1">
and t_user.enable = #{searchEnable}