Set categoryDtos 集合对象
查找集合对象中CategoryDto的ID
Set<Integer> categoryIds = categoryDtos.stream().map(CategoryDto::getId).collect(Collectors.toSet());
Set categoryDtos 集合对象
查找集合对象中CategoryDto的ID
Set<Integer> categoryIds = categoryDtos.stream().map(CategoryDto::getId).collect(Collectors.toSet());