储值列表修复

This commit is contained in:
张松
2025-09-26 15:28:48 +08:00
parent 86bff44e04
commit 1de653a03e

View File

@@ -206,7 +206,7 @@ public class MkShopRechargeServiceImpl extends ServiceImpl<MkShopRechargeMapper,
return rechargeListVOS;
}
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 -> {
ShopInfo shopInfo = shopInfoMap.getOrDefault(item.getSourceShopId(), new ShopInfo());
rechargeListVOS.add(new RechargeListVO().setShopName(shopInfo.getShopName())