过滤项目并取项目编号列表

List projectsJoined = organizationRepository.findAllByModel(Filter.condition().in("id", principal.getOrgList().stream().filter(orgResult -> orgResult.getCategory().equals("projectTeam")).map(orgResult -> orgResult.getOrganizationId()).collect(Collectors.toList())), null);

你可能感兴趣的:(技术)