fix: avoid non-persistent sortOrder in role list query
This commit is contained in:
parent
cca9a4c2eb
commit
fae8247132
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user