xiaoyong931011
2023-06-04 15e04e7eeab22219771293ab3d5c312008658959
src/main/java/cc/mrbird/febs/dapp/service/impl/DappWalletServiceImpl.java
@@ -458,6 +458,13 @@
        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);
    }
@@ -709,10 +716,10 @@
                /**
                 * 出局复投要求等于戓大于自己上次投资金额
                 */
//                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(),