Browse Source

地区

sunjiabei/feature-20250710132313-二期模块
sunjiabei 4 weeks ago
parent
commit
7a609619ba
  1. 4
      src/main/resources/mapper/RoleMapper.xml

4
src/main/resources/mapper/RoleMapper.xml

@ -59,6 +59,7 @@
r.role_name AS roleName,
r.priority AS priority,
r.father_id AS fatherId,
r.market AS market,
-- 通过自连接查询父角色名称
father.role_name AS fatherName
FROM role r
@ -68,6 +69,9 @@
<if test="roleName != null and roleName != ''">
r.role_name LIKE CONCAT('%', #{roleName}, '%')
</if>
<if test="market != null and market != ''">
r.market LIKE CONCAT('%', #{market}, '%')
</if>
<!-- 判断 market 是否不为总部且 markets 不为空 -->
<if test="markets != null and markets.size() > 0 and '总部' not in markets">
AND r.market IN

Loading…
Cancel
Save