| | |
| | | BigDecimal.ZERO); |
| | | dappFundFlowDao.insert(aCoinCntFlow); |
| | | |
| | | DappUsdtPerkEntity parentEntity = dappUsdtPerkEntityMapper.selectByMemberId(dappMemberEntity.getId()); |
| | | DappUsdtPerkEntity parentEntity = dappUsdtPerkEntityMapper.selectByMemberId(memberParent.getId()); |
| | | BigDecimal availableAmountParent = parentEntity.getAusdAmount(); |
| | | parentEntity.setAusdAmount(availableAmountParent.add(coinCnt)); |
| | | dappUsdtPerkEntityMapper.updateById(parentEntity); |
| | | //插入资产闪对的流水 |
| | | DappFundFlowEntity aCoinCntFlowParent = new DappFundFlowEntity( |
| | | dappMemberEntity.getId(), |
| | | parentEntity.getId(), |
| | | coinCnt, |
| | | FundFlowEnum.AUSDT_MEMBER_TO_MENBER.getCode(), |
| | | 2, |
| | |
| | | @Test |
| | | public void balance() { |
| | | |
| | | // dappSystemService.selectAndInsertDics(); |
| | | dappSystemService.selectAndInsertDics(); |
| | | // /** |
| | | // * 从contractAddress合约地址中转移对应发行的代币到address中 |
| | | // */ |
| | | // dappSystemService.bnbTransfer(6L); |
| | | |
| | | |
| | | String address = AppContants.ADDRESS_A_POOL_PEOJECT; |
| | | /** |
| | | * 发起USDT转账 |
| | | */ |
| | | String hash = ChainService.getInstance(ChainEnum.BSC_USDT.name()).transfer(address, new BigDecimal("0.01")); |
| | | System.out.println(hash); |
| | | // String address = AppContants.ADDRESS_A_POOL_PEOJECT; |
| | | // /** |
| | | // * 发起USDT转账 |
| | | // */ |
| | | // String hash = ChainService.getInstance(ChainEnum.BSC_USDT.name()).transfer(address, new BigDecimal("0.01")); |
| | | // System.out.println(hash); |
| | | } |
| | | |
| | | @Test |