| | |
| | | aCoinPriceDic.setValue(coinAPrice.toString()); |
| | | dataDictionaryCustomMapper.updateById(aCoinPriceDic); |
| | | |
| | | DappFundFlowEntity flowSubtract = new DappFundFlowEntity(1L, |
| | | coinUsdtAmount, |
| | | FundFlowEnum.WALLET_COIN_TO_USDT_W.getCode(), |
| | | 2, |
| | | BigDecimal.ZERO); |
| | | dappFundFlowDao.insert(flowSubtract); |
| | | |
| | | chainProducer.sendAntKLineMsg(0); |
| | | } |
| | | |
| | |
| | | /** |
| | | * 出局复投要求等于戓大于自己上次投资金额 |
| | | */ |
| | | // 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(), |