fix: avoid non-persistent sortOrder in role list query

This commit is contained in:
Your Name 2026-02-22 18:48:44 +08:00
parent cca9a4c2eb
commit fae8247132

View File

@ -32,7 +32,7 @@ public class RoleService {
return roleMapper.selectList(
new LambdaQueryWrapper<Role>()
.eq(Role::getStatus, 1)
.orderByAsc(Role::getSortOrder)
.orderByAsc(Role::getId)
);
}
@ -195,4 +195,3 @@ public class RoleService {
return roleMapper.updateById(updateRole) > 0;
}
}