List shopIdList = deviceList.stream().map(Device::getShopId)
.collect(Collectors.toCollection(ArrayList::new));
Map<Long, Shop> shopMap = shopList.stream().collect(Collectors.toMap(Shop::getId, s -> s));
aa
aasdfasdfasdf
asdfasdf
List shopIdList = deviceList.stream().map(Device::getShopId)
.collect(Collectors.toCollection(ArrayList::new));
Map<Long, Shop> shopMap = shopList.stream().collect(Collectors.toMap(Shop::getId, s -> s));
aa
aasdfasdfasdf
asdfasdf