refactor: 角色列表排序更改

角色列表排序更改
This commit is contained in:
胡少翔
2024-11-14 09:41:00 +08:00
parent 16bd1399db
commit be91043dcb

View File

@@ -66,7 +66,7 @@ public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements Ro
.like(StrUtil.isNotBlank(keywords), Role::getCode, keywords)
)
.ne(!SecurityUtils.isRoot(), Role::getCode, SystemConstants.ROOT_ROLE_CODE) // 非超级管理员不显示超级管理员角色
.orderByDesc(Role::getId)
.orderByDesc(Role::getCreateTime).orderByDesc(Role::getUpdateTime)
);
// 实体转换