| | |
| | | }).distinct(); |
| | | }).collect(Collectors.toList())); |
| | | */ |
| | | list.addAll( workstations.stream().flatMap(o1 -> { |
| | | Long id = o1.getId(); |
| | | return itemList.stream().filter(o22 -> { |
| | | Integer distinguish = commonGroupTypeVO.getDistinguish(); |
| | | boolean result = id.equals(o22.getItemId()); |
| | | |
| | | return result; |
| | | }).map(o23 -> { |
| | | return WorkstationInGroupVO.builder().id(id).parentId(o23.getGroupId()).title(o1.getName()).code(o1.getCode()).isWorkstation(Boolean.TRUE).isGroup(Boolean.FALSE).avatar(o1.getAvatar()).ftpCatalogue(o1.getFtpCatalogue()).build(); |
| | | }).distinct(); |
| | | }).collect(Collectors.toList())); |
| | | return list; |
| | | } |
| | | |