@@ -196,6 +196,8 @@ public class BathFacilityServiceServiceImpl extends ServiceImpl<BathFacilityServ
if (!CollectionUtils.isEmpty(imageList)) {
vo.setImageList(imageList.stream().map(StoreImg::getImgUrl)
.collect(Collectors.toList()));
+ } else {
+ vo.setImageList(new ArrayList<>());
}
return vo;
@@ -178,6 +178,8 @@ public class SportsEquipmentFacilityServiceImpl extends ServiceImpl<SportsEquipm
categoryVo.setImageList(imageList.stream().map(StoreImg::getImgUrl)
+ categoryVo.setImageList(new ArrayList<>());
result.add(categoryVo);