使用java8stream去重,简洁,高级
List<UserOrganizationVO> list = userOrganizationVOS.stream().collect(collectingAndThen(toCollection(() -> new TreeSet<>( Comparator.comparing(UserOrganizationVO::getOrgId))), ArrayList::new));
多个字段或者多个条件去重
List<UserOrganizationVO> list = userOrganizationVOS.stream().collect(collectingAndThen(toCollection(() -> new TreeSet<>( Comparator.comparing(p->p.getId() + ";" + p.getOrgId()))), ArrayList::new));