|
|
@ -75,6 +75,8 @@ |
|
|
|
r.priority AS priority, |
|
|
|
r.father_id AS fatherId, |
|
|
|
r.market AS market, |
|
|
|
r.create_time AS createTime, |
|
|
|
r.update_time AS updateTime, |
|
|
|
-- 通过自连接查询父角色名称 |
|
|
|
father.role_name AS fatherName |
|
|
|
FROM role r |
|
|
@ -95,7 +97,7 @@ |
|
|
|
</foreach> |
|
|
|
</if> |
|
|
|
</where> |
|
|
|
ORDER BY r.priority DESC |
|
|
|
ORDER BY r.update_time DESC,r.priority DESC |
|
|
|
</select> |
|
|
|
<!--获取当前角色的上级角色--> |
|
|
|
<select id="selectFather" resultType="com.example.demo.domain.vo.RoleVo"> |
|
|
|