|
@@ -95,7 +95,7 @@ public class RoleController extends BladeController {
|
|
|
@ApiOperation(value = "列表", notes = "传入role")
|
|
|
public R<List<RoleVO>> list(@ApiIgnore @RequestParam Map<String, Object> role, BladeUser bladeUser) {
|
|
|
QueryWrapper<Role> queryWrapper = Condition.getQueryWrapper(role, Role.class);
|
|
|
- List<Role> list = roleService.list((!bladeUser.getTenantId().equals(BladeConstant.ADMIN_TENANT_ID)) ? queryWrapper.lambda().eq(Role::getTenantId, bladeUser.getTenantId()) : queryWrapper);
|
|
|
+ List<Role> list = roleService.list((!bladeUser.getTenantId().equals(BladeConstant.ADMIN_TENANT_ID)) ? queryWrapper.lambda().eq(Role::getTenantId, bladeUser.getTenantId()).orderByAsc(Role::getSort) : queryWrapper.orderByAsc("sort"));
|
|
|
return R.data(RoleWrapper.build().listNodeVO(list));
|
|
|
}
|
|
|
|