SpringBoot 在线协同办公小程序开发 全栈式项目实战
v: ititit111222333
List<CategoryMapping> categoryMappings = this.categoryMappingService.listCategoryMappingByCategoryIds(categoryIds);
List<Long> existsIds = getPropertyList(categoryMappings, CategoryMapping::getCategoryId);
List<Long> createBys = CollectionUtil.getPropertyList(vos, CategoryVO::getCreateBy);
List<Long> updateBys = CollectionUtil.getPropertyList(vos, CategoryVO::getUpdateBy);
createBys.addAll(updateBys);
List<Long> ids = createBys.stream().distinct().collect(Collectors.toList());
List<UserDTO> userDTOS = userClient.listByIds(ids);
Map<Long, String> userMap = ObjectUtil.toMap(userDTOS, UserDTO::getId, UserDTO::getName);