Showing
1 changed file
with
1 additions
and
1 deletions
@@ -63,7 +63,7 @@ public class ShopService { | @@ -63,7 +63,7 @@ public class ShopService { | ||
63 | List<Integer> shopIds = shops.stream().map(Shops::getShopsId).filter(Objects::nonNull).distinct().collect(Collectors.toList()); | 63 | List<Integer> shopIds = shops.stream().map(Shops::getShopsId).filter(Objects::nonNull).distinct().collect(Collectors.toList()); |
64 | // 获取店铺装修信息 | 64 | // 获取店铺装修信息 |
65 | List<ShopAdditionalImage> shopAdditionalImages = shopAdditionalImageMapper.selectByShopIds(shopIds); | 65 | List<ShopAdditionalImage> shopAdditionalImages = shopAdditionalImageMapper.selectByShopIds(shopIds); |
66 | - Map<Integer, ShopAdditionalImage> shopAdditionalImageMap = shopAdditionalImages.stream().collect(Collectors.toMap(ShopAdditionalImage::getId, a -> a, (k1, k2) -> k1)); | 66 | + Map<Integer, ShopAdditionalImage> shopAdditionalImageMap = shopAdditionalImages.stream().collect(Collectors.toMap(ShopAdditionalImage::getShopId, a -> a, (k1, k2) -> k1)); |
67 | // 构造结果 | 67 | // 构造结果 |
68 | List<ShopsAdditionalImageBO> shopsAdditionalImageBOS = new ArrayList<>(); | 68 | List<ShopsAdditionalImageBO> shopsAdditionalImageBOS = new ArrayList<>(); |
69 | for (Shops shop : shops) { | 69 | for (Shops shop : shops) { |
-
Please register or login to post a comment