!26 fix: 角色管理页面按照 排序字段 排序

* fix: 角色管理页面按照 排序字段 排序
This commit is contained in:
萌狼蓝天
2025-02-21 13:09:17 +00:00
committed by Ray.Hao
parent 2c98612da2
commit 8510220c34

View File

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