Commit a4fdeb40 by zhiwj

门店

parent 80b91b83
......@@ -454,6 +454,10 @@ public class StoreApiServiceImpl implements StoreApiService {
for (StoreDTO storeDTO : storeDTOList) {
List<StorePhotoDTO> photoList = storeDTO.getPhotoList();
List<String> list = Optional.ofNullable(photoList).orElse(Collections.emptyList()).stream().map(StorePhotoDTO::getImageUrl).collect(Collectors.toList());
// todo 给一个门店图片默认值测试
if (CollectionUtils.isNotEmpty(list)) {
list = Arrays.asList("http://gicdev.demogic.com/gic-web/static/img/side-img.dc95242.png");
}
resultMap.put(storeDTO.getStoreId(), list);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment