|
@@ -215,8 +215,8 @@ public class TourProjectGroupPurchaseServiceImpl extends BaseService<TourProject
|
|
|
// usersAvatars用,分割成List
|
|
|
if(StringUtils.isNotBlank(usersAvatars)) {
|
|
|
List<String> headImageUrlList = Arrays.asList(usersAvatars.split(","));
|
|
|
- // 去掉list里的null元素
|
|
|
- headImageUrlList = headImageUrlList.stream().filter(Objects::nonNull).collect(Collectors.toList());
|
|
|
+ // 去掉list里的null字符串
|
|
|
+ headImageUrlList = headImageUrlList.stream().filter(e->!"null".equals(e)).collect(Collectors.toList());
|
|
|
groupPurchase.setSplicingAvatars(this.splicingAvatars(headImageUrlList));
|
|
|
}
|
|
|
|
|
@@ -297,7 +297,7 @@ public class TourProjectGroupPurchaseServiceImpl extends BaseService<TourProject
|
|
|
// tourUserList里的头像url提取成List<String>
|
|
|
List<String> headImageUrlList = tourUserList.stream().map(TourUser::getHeadImageUrl).collect(Collectors.toList());
|
|
|
// 去掉list里的空元素
|
|
|
- headImageUrlList = headImageUrlList.stream().filter(Objects::nonNull).collect(Collectors.toList());
|
|
|
+ headImageUrlList = headImageUrlList.stream().filter(e->!"null".equals(e)).collect(Collectors.toList());
|
|
|
// headImageUrlList使用,分割,转为字符串
|
|
|
if(headImageUrlList != null && headImageUrlList.size() > 0) {
|
|
|
// 如果是参与拼团,那么加上当前用户头像,如果是取消,就不用处理
|