| | |
| | | Integer type = apiRechargeWalletDto.getType(); |
| | | if(2 == type){ |
| | | //成为合伙人的充值金额 |
| | | DataDictionaryCustom agentPriceDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.PRICE_AMOUNT.getType(), |
| | | DataDictionaryEnum.PRICE_AMOUNT.getCode()); |
| | | String agentPrice = agentPriceDic.getValue(); |
| | | BigDecimal price = new BigDecimal(agentPrice); |
| | | if(price.compareTo(amount) != 0){ |
| | | MallAgentRecord mallAgentRecord = mallAgentRecordMapper.selectById(apiRechargeWalletDto.getAgentApplyId()); |
| | | BigDecimal agentPrice = mallAgentRecord.getAmount(); |
| | | // DataDictionaryCustom agentPriceDic = dataDictionaryCustomMapper.selectDicDataByTypeAndCode(DataDictionaryEnum.PRICE_AMOUNT.getType(), |
| | | // DataDictionaryEnum.PRICE_AMOUNT.getCode()); |
| | | // String agentPrice = agentPriceDic.getValue(); |
| | | // BigDecimal price = new BigDecimal(agentPrice); |
| | | if(agentPrice.compareTo(amount) != 0){ |
| | | return new FebsResponse().fail().message("成为合伙人的金额为"+agentPrice); |
| | | } |
| | | } |