| | |
| | | import com.xcong.excoin.common.entity.QueryRequest; |
| | | import com.xcong.excoin.modules.Sms106Send; |
| | | import com.xcong.excoin.modules.member.dto.MemberDetailConfirmDto; |
| | | import com.xcong.excoin.modules.member.entity.AgentFriendRelationEntity; |
| | | import com.xcong.excoin.modules.member.entity.MemberAccountMoneyChangeEntity; |
| | | import com.xcong.excoin.modules.member.entity.MemberAuthenticationEntity; |
| | | import com.xcong.excoin.modules.member.entity.MemberCoinAddressEntity; |
| | | import com.xcong.excoin.modules.member.entity.MemberCoinChargeEntity; |
| | | import com.xcong.excoin.modules.member.entity.MemberCoinWithdrawEntity; |
| | | import com.xcong.excoin.modules.member.entity.MemberEntity; |
| | | import com.xcong.excoin.modules.member.entity.MemberQuickBuySaleEntity; |
| | | import com.xcong.excoin.modules.member.entity.MemberWalletCoinEntity; |
| | | import com.xcong.excoin.modules.member.mapper.AgentFriendRelationMapper; |
| | | import com.xcong.excoin.modules.member.mapper.MemberAccountMoneyChangeMapper; |
| | | import com.xcong.excoin.modules.member.mapper.MemberAuthenticationMapper; |
| | | import com.xcong.excoin.modules.member.mapper.MemberCoinAddressMapper; |
| | | import com.xcong.excoin.modules.member.mapper.MemberCoinChargeMapper; |
| | | import com.xcong.excoin.modules.member.mapper.MemberCoinWithdrawMapper; |
| | | import com.xcong.excoin.modules.member.mapper.MemberMapper; |
| | | import com.xcong.excoin.modules.member.mapper.MemberQuickBuySaleMapper; |
| | | import com.xcong.excoin.modules.member.mapper.MemberWalletCoinMapper; |
| | | import com.xcong.excoin.modules.member.entity.*; |
| | | import com.xcong.excoin.modules.member.mapper.*; |
| | | import com.xcong.excoin.modules.member.service.EthService; |
| | | import com.xcong.excoin.modules.member.service.IMemberService; |
| | | import com.xcong.excoin.modules.member.service.RocService; |
| | |
| | | private final MemberAuthenticationMapper memberAuthenticationMapper; |
| | | |
| | | private final AgentFriendRelationMapper agentFriendRelationMapper; |
| | | |
| | | private final TdFinancialReordDao tdFinancialReordDao; |
| | | |
| | | @Override |
| | | public IPage<AgentFriendRelationEntity> findAgentInfoListInPage(AgentFriendRelationEntity agentFriendRelationEntity, |
| | |
| | | } |
| | | // 转币 需要扣除手续费 |
| | | amount = amount.subtract(selectById.getFeeAmount()); |
| | | if("ROC".equals(symbol) && !"Y".equals(selectById.getIsInside())){ |
| | | if("RFNC".equals(symbol) && !"Y".equals(selectById.getIsInside())){ |
| | | // 如果是ROC 则自动转 |
| | | String transfer = RocService.transfer(amount, address, "ROC"); |
| | | String transfer = RocService.transfer(amount, address, "RFNC"); |
| | | if(!"success".equals(transfer)){ |
| | | FebsResponse febsResponse = new FebsResponse(); |
| | | return febsResponse.fail().message(transfer); |
| | |
| | | memberWalletCoinMapper.updateById(walletCoin); |
| | | |
| | | if ("Y".equals(selectById.getIsInside())) { |
| | | // 查询算力系统中是否存在该地址 |
| | | TdCoinWallet tdCoinWallet = memberWalletCoinMapper.selectTdCoinWalletByAddress(address, "USDT"); |
| | | if (tdCoinWallet != null) { |
| | | // 更新算力系统中用户钱包余额 |
| | | memberWalletCoinMapper.updateTdCoinWalletAvaliable(amount, address); |
| | | |
| | | TdFinancialReord tdFinancialReord = new TdFinancialReord(); |
| | | tdFinancialReord.setAmount(amount); |
| | | tdFinancialReord.setCreateTime(new Date()); |
| | | tdFinancialReord.setMemId(tdCoinWallet.getMemId()); |
| | | tdFinancialReord.setSymbol("USDT"); |
| | | tdFinancialReord.setTitle("USDT交易所转账"); |
| | | tdFinancialReord.setContent("USDT交易所转账"); |
| | | // 插入算力系统中财务记录 |
| | | tdFinancialReordDao.insert(tdFinancialReord); |
| | | } else { |
| | | Map<String, Object> columnMap = new HashMap<>(); |
| | | columnMap.put("symbol", symbol); |
| | | columnMap.put("address", address); |
| | |
| | | memberAccountMoneyChangeEntity.setUpdateTime(new Date()); |
| | | memberAccountMoneyChangeMapper.insert(memberAccountMoneyChangeEntity); |
| | | } |
| | | } |
| | | |
| | | Map<String, Object> columnMaps = new HashMap<>(); |
| | | columnMaps.put("withdraw_id", selectById.getId()); |