diff --git a/src/main/resources/mapper/RoleMapper.xml b/src/main/resources/mapper/RoleMapper.xml index 64add82..60ca414 100644 --- a/src/main/resources/mapper/RoleMapper.xml +++ b/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 @@ - ORDER BY r.priority DESC + ORDER BY r.update_time DESC,r.priority DESC