| | |
| | | |
| | | private final RedisUtils redisUtils; |
| | | private final TdFinancialReordDao tdFinancialReordDao; |
| | | private final TdCoinChargeDao tdCoinChargeDao; |
| | | |
| | | @Override |
| | | public IPage<AgentFriendRelationEntity> findAgentInfoListInPage(AgentFriendRelationEntity agentFriendRelationEntity, |
| | |
| | | financialReord.setCreateTime(new Date()); |
| | | financialReord.setMemId(coinAddressEntity.getMemberId()); |
| | | tdFinancialReordDao.insert(financialReord); |
| | | // 插入冲币记录 |
| | | |
| | | TdCoinCharge tdCoinCharge = new TdCoinCharge(); |
| | | tdCoinCharge.setAddress(address); |
| | | tdCoinCharge.setAmount(amount); |
| | | tdCoinCharge.setMemberId(coinAddressEntity.getMemberId()); |
| | | tdCoinCharge.setSymbol("USDT"); |
| | | tdCoinCharge.setTag("ERC20"); |
| | | tdCoinCharge.setTransHash(""); |
| | | tdCoinCharge.setCreateTime(new Date()); |
| | | tdCoinCharge.setLastAmount(amount); |
| | | tdCoinCharge.setStatus(1); |
| | | tdCoinChargeDao.insert(tdCoinCharge); |
| | | // 更新钱包 |
| | | memberCoinAddressMapper.updateSuanliWallet(walletId,amount); |
| | | } |