| | |
| | | |
| | | @Override |
| | | public String getRoleIds(String tenantId, String roleNames) { |
| | | List<Role> roleList = baseMapper.selectList(Wrappers.<Role>query().lambda().eq(Role::getTenantId, tenantId).in(Role::getRoleName, Func.toStrList(roleNames))); |
| | | List<Role> roleList = baseMapper.selectList(Wrappers.<Role>query().lambda().eq(Role::getTenantId, tenantId).in(Role::getRoleAlias, Func.toStrList(roleNames))); |
| | | if (roleList != null && roleList.size() > 0) { |
| | | return roleList.stream().map(role -> Func.toStr(role.getId())).distinct().collect(Collectors.joining(",")); |
| | | } |