//字符串用逗号拼接
obj.getList().stream().forEach(item->{
String arrId[] = item.getId().split(",");
String yourStr = "";
StringBuilder stringBuilder = new StringBuilder();
for(int i=0;i<arrId.length;i++){
sd.setId(arrId[i]);
if (stringBuilder.length() > 0) {
stringBuilder.append(",");
}
stringBuilder.append(salesBrandService.get(sd).getBrandName());
yourStr = stringBuilder.toString();
}
item.setXXX(yourStr);
});