余额列表仅展示充值过的

This commit is contained in:
张松 2025-09-28 14:46:18 +08:00
parent 1152ea91fe
commit cbef1e5fd4
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ public class MkShopRechargeServiceImpl extends ServiceImpl<MkShopRechargeMapper,
@Override
public List<RechargeListVO> getList(long loginIdAsLong) {
ArrayList<RechargeListVO> rechargeListVOS = new ArrayList<>();
List<ShopUser> shopUserList = shopUserService.list(new QueryWrapper().eq(ShopUser::getUserId, loginIdAsLong));
List<ShopUser> shopUserList = shopUserService.list(new QueryWrapper().eq(ShopUser::getUserId, loginIdAsLong).isNotNull(ShopUser::getAmount));
if (shopUserList.isEmpty()) {
return rechargeListVOS;
}