Browse Source

角色时间排序

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

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

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

Loading…
Cancel
Save