| | |
| | | BigDecimal amountNow = runVipGrow.getAmountNow(); |
| | | RunVip runVipNext = runVips.stream().filter(vipItem -> vipItem.getOrderNumber() == runVip.getOrderNumber() + 1).findFirst().orElse(null); |
| | | if(runVipNext != null){ |
| | | |
| | | BigDecimal presentPrice = runVip.getPresentPrice(); |
| | | amountNow = amountNow.subtract(presentPrice); |
| | | |
| | | BigDecimal presentPriceNext = runVipNext.getPresentPrice(); |
| | | BigDecimal subtract = presentPriceNext.subtract(presentPrice); |
| | | |
| | |
| | | |
| | | BigDecimal growthAmountTotal = divide.multiply(new BigDecimal(growthNum)); |
| | | BigDecimal growthAmount = growthAmountTotal.divide(new BigDecimal(C1), 0, RoundingMode.DOWN); |
| | | if(growthAmount.intValue() > 0){ |
| | | V3 = V3.add(growthAmount); |
| | | } |
| | | } |
| | | } |
| | | //更新钱包数据 |
| | | if(V3.intValue() <= 0){ |
| | | continue; |