This commit is contained in:
2023-11-14 18:46:16 +08:00
parent 1281a19bd9
commit 574c0df384
3 changed files with 14 additions and 3 deletions

View File

@@ -4,7 +4,17 @@
<select id="selectPage" resultType="long">
select id
from t_role
where deleted = 0
<where>
deleted = 0
<choose>
<when test="searchRegex == true">
and t_role.name regexp #{searchName}
</when>
<otherwise>
and t_role.name like concat('%' ,#{searchName}, '%')
</otherwise>
</choose>
</where>
</select>
<select id="getWithPowerByList" resultMap="roleWithPowerMap">