| | |
| | | if(withdrawalDto.getAmount().compareTo(wallet.getBalance()) > 0) { |
| | | throw new FebsException("金额不足"); |
| | | } |
| | | BigDecimal commission = wallet.getCommission(); |
| | | if(withdrawalDto.getAmount().compareTo(commission) > 0){ |
| | | throw new FebsException("金额不足"); |
| | | } |
| | | // BigDecimal commission = wallet.getCommission(); |
| | | // if(withdrawalDto.getAmount().compareTo(commission) > 0){ |
| | | // throw new FebsException("金额不足"); |
| | | // } |
| | | |
| | | BigDecimal serviceFee = cashOutSettingVo.getServiceFee().multiply(BigDecimal.valueOf(0.01)); |
| | | walletService.reduce(withdrawalDto.getAmount(), memberId, "balance"); |