| | |
| | | for(MallMemberWallet mallMemberWallet : mallMemberWallets){ |
| | | BigDecimal score = mallMemberWallet.getScore(); |
| | | BigDecimal multiply = score.multiply(fireScorePercent).setScale(2,BigDecimal.ROUND_DOWN);//每次需要燃烧的数量 |
| | | if(BigDecimal.ZERO.compareTo(multiply) >= 0){ |
| | | continue; |
| | | } |
| | | iApiMallMemberWalletService.reduce(multiply,mallMemberWallet.getMemberId(),"score"); |
| | | //增加一个流水记录 |
| | | moneyFlowService.addMoneyFlow( |
| | |
| | | AppContants.IS_RETURN_YES); |
| | | totalReduce = totalReduce.add(multiply); |
| | | } |
| | | |
| | | if(BigDecimal.ZERO.compareTo(totalReduce) >= 0){ |
| | | return; |
| | | } |
| | | /** |
| | | * H金劵减少,更新价格 |
| | | */ |