xiaoyong931011
2023-04-17 ffda320eccfcb699baa827311e33fb69f01fa852
src/main/java/cc/mrbird/febs/mall/service/impl/MallMemberWithdrawServiceImpl.java
@@ -81,10 +81,10 @@
        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");