版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/wpwbb510582246/article/details/83547225
isNotBlank
if (StringUtils.isNotBlank(key)) {
criteria.orLike("title", "%" + key + "%");
}
join
List<String> names = categories.stream().map(Category::getName).collect(Collectors.toList());
String name = StringUtils.join(names, " ");
substringBefore
StringUtils.substringBefore(sku.getImages(), ",")