| | |
| | | /** |
| | | * 出局复投要求等于戓大于自己上次投资金额 |
| | | */ |
| | | // BigDecimal maxAmount = dappChargeUsdtMapper.selectByMaxAmountMemberId(member.getId()); |
| | | // if(maxAmount.compareTo(transferADto.getAmount()) > 0){ |
| | | // throw new FebsException("投资金额不能小于"+maxAmount.setScale(4,BigDecimal.ROUND_DOWN)); |
| | | // } |
| | | BigDecimal maxAmount = dappChargeUsdtMapper.selectByMaxAmountMemberId(member.getId()); |
| | | if(maxAmount.compareTo(transferADto.getAmount()) > 0){ |
| | | throw new FebsException("投资金额不能小于"+maxAmount.setScale(4,BigDecimal.ROUND_DOWN)); |
| | | } |
| | | //生成一条进行中的入金资金流水记录 |
| | | DappFundFlowEntity fundFlow = new DappFundFlowEntity( |
| | | member.getId(), |