储值列表修复

This commit is contained in:
张松
2025-09-26 15:29:19 +08:00
parent 1de653a03e
commit ab95c69bc6

View File

@@ -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())