| | |
| | | MallMemberWallet mallMemberWallet = mallMemberWalletMapper.selectWalletByMemberId(memberId); |
| | | BigDecimal voucherCntMember = mallMemberWallet.getVoucherCnt(); |
| | | if(voucherCntMember.compareTo(voucherCnt) < 0){ |
| | | throw new FebsException("绿色积分不足"); |
| | | throw new FebsException("数量不足"); |
| | | } |
| | | |
| | | DataDictionaryCustom scorePriceDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | |
| | | voucherAmount, |
| | | MoneyFlowTypeEnum.VOUCHER_SALE.getValue(), |
| | | voucherNo, |
| | | FlowTypeEnum.VOUCHER_AMOUNT.getValue()); |
| | | FlowTypeEnum.BALANCE.getValue()); |
| | | return new FebsResponse().success().message("操作成功"); |
| | | } |
| | | |