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