| | |
| | | TrcAddressEntity address = trcAddressDao.selectOneSrcAddressUnUse();
|
| | | address.setMemberId(member.getId());
|
| | | address.setIsUse(1);
|
| | | address.setSystemFlag(1);
|
| | |
|
| | | TRC20ApiUtils.createWallet(member.getId(), member.getInviteId(), "USDT", address.getAddress());
|
| | | trcAddressDao.updateById(address);
|
| | |
| | | private int isUse; |
| | | |
| | | private Long memberId; |
| | | |
| | | private Integer systemFlag; |
| | | } |
| | |
| | | <mapper namespace="com.xcong.excoin.modules.coin.dao.TrcAddressDao">
|
| | |
|
| | | <select id="selectSrcAddressByMemberId" resultType="com.xcong.excoin.modules.coin.entity.TrcAddressEntity">
|
| | | select * from trc_address where member_id=#{memberId} and is_use=1
|
| | | select * from trc_address where member_id=#{memberId} and is_use=1 and system_flag = 1
|
| | | </select>
|
| | |
|
| | | <select id="selectOneSrcAddressUnUse" resultType="com.xcong.excoin.modules.coin.entity.TrcAddressEntity">
|