| | |
| | | reduceAmount = runVipGrow.getAmountNow(); |
| | | } |
| | | presentAmount = presentAmount.subtract(reduceAmount); |
| | | if(BigDecimal.ZERO.compareTo(presentAmount) >= 0){ |
| | | throw new FebsException("支付异常,请刷新页面重试"); |
| | | } |
| | | |
| | | Long addressId = apiGoChargeDto.getAddressId(); |
| | | MallMemberPayment mallMemberPayment = mallMemberPaymentMapper.selectById(addressId); |
| | |
| | | .orderByDesc(RunVipGrow::getId) |
| | | ).stream().findFirst().orElse(null); |
| | | if(runVipGrow != null){ |
| | | BigDecimal amountNow = runVipGrow.getAmountNow(); |
| | | reduceAmount = reduceAmount.add(amountNow); |
| | | reduceAmount = runVipGrow.getAmountNow(); |
| | | } |
| | | presentAmount = presentAmount.subtract(reduceAmount); |
| | | if(BigDecimal.ZERO.compareTo(presentAmount) >= 0){ |
| | | throw new FebsException("支付异常,请刷新页面重试"); |
| | | } |
| | | |
| | | MallMemberWallet mallMemberWallet = mallMemberWalletMapper.selectWalletByMemberId(memberId); |
| | | if(mallMemberWallet.getCommission().compareTo(BigDecimal.ZERO) <= 0){ |