储值列表修复
This commit is contained in:
@@ -206,7 +206,7 @@ public class MkShopRechargeServiceImpl extends ServiceImpl<MkShopRechargeMapper,
|
|||||||
return rechargeListVOS;
|
return rechargeListVOS;
|
||||||
}
|
}
|
||||||
Set<Long> shopIdList = shopUserList.stream().map(ShopUser::getSourceShopId).collect(Collectors.toSet());
|
Set<Long> shopIdList = shopUserList.stream().map(ShopUser::getSourceShopId).collect(Collectors.toSet());
|
||||||
Map<Long, ShopInfo> shopInfoMap = shopInfoService.list(new QueryWrapper().eq(ShopInfo::getId, shopIdList)).stream().collect(Collectors.toMap(ShopInfo::getId, item -> item));
|
Map<Long, ShopInfo> shopInfoMap = shopInfoService.list(new QueryWrapper().in(ShopInfo::getId, shopIdList)).stream().collect(Collectors.toMap(ShopInfo::getId, item -> item));
|
||||||
shopUserList.forEach(item -> {
|
shopUserList.forEach(item -> {
|
||||||
ShopInfo shopInfo = shopInfoMap.getOrDefault(item.getSourceShopId(), new ShopInfo());
|
ShopInfo shopInfo = shopInfoMap.getOrDefault(item.getSourceShopId(), new ShopInfo());
|
||||||
rechargeListVOS.add(new RechargeListVO().setShopName(shopInfo.getShopName())
|
rechargeListVOS.add(new RechargeListVO().setShopName(shopInfo.getShopName())
|
||||||
|
|||||||
Reference in New Issue
Block a user