xiaoyong931011
2023-04-04 f394f97ac1a1216251e70678dee5484610c39178
src/main/java/cc/mrbird/febs/mall/service/impl/MallMemberWithdrawServiceImpl.java
@@ -99,7 +99,7 @@
            if("1".equals(voucherOnOff)){
                BigDecimal voucherCntDto = withdrawalDto.getVoucherCnt();
                if(voucherCntDto.compareTo(BigDecimal.ZERO) <= 0){
                    throw new FebsException("绿色积分不足");
                    throw new FebsException("红豆不足");
                }
                //提现需要的凭证数量 = 提现金额 * 余额提现需要绿色凭证比例
                DataDictionaryCustom voucherPercentDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(
@@ -111,7 +111,7 @@
                BigDecimal voucherCnt = wallet.getVoucherCnt();
                if(voucherCnt.compareTo(voucherPercentNeed) < 0){
                    throw new FebsException("绿色积分不足");
                    throw new FebsException("红豆不足");
                }
                walletService.reduce(voucherCntDto, memberId, "voucher_cnt");