Commit 5704811a by levphon

bug修复

1 parent bd6f35ad
......@@ -208,11 +208,11 @@ public class DepartmentService {
return userMapper.selectByIds(subUserIdList);
} else if (assignTenants.getCode().equals(role.getRolePermissionType())) {
List<Tenant> tenantList = this.getRolePermissionTenants();
List<RoleDataPermission> assignTenants = roleDataPermissionMapper.selectByRoleId(roleId);
List<Long> tenantIdList = tenantList.stream().map(Tenant::getId).collect(Collectors.toList());
List<Long> assignTenantIdList = assignTenants.stream().map(RoleDataPermission::getRefId).collect(Collectors.toList());
return userMapper.selectByTenantIds(tenantIdList);
return userMapper.selectByTenantIds(assignTenantIdList);
}
return userList;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!