| | |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | import java.math.BigDecimal; |
| | | |
| | |
| | | private final DappWalletMineDao dappWalletMineDao; |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public void approve(ApproveDto approveDto) { |
| | | DappMemberEntity member = new DappMemberEntity(); |
| | | member.setAddress(approveDto.getAddress()); |
| | |
| | | } |
| | | } |
| | | member.setRefererIds(ids); |
| | | dappMemberDao.updateById(member); |
| | | } |
| | | dappMemberDao.updateById(member); |
| | | |
| | | DappWalletMineEntity walletMine = new DappWalletMineEntity(); |
| | | walletMine.setMemberId(member.getId()); |
| | | walletMine.setTotalAmount(BigDecimal.ZERO); |
| | | walletMine.setAvailableAmount(BigDecimal.ZERO); |
| | | walletMine.setFrozenAmount(BigDecimal.ZERO); |
| | | dappWalletMineDao.insert(walletMine); |
| | | |
| | | DappWalletCoinEntity walletCoin = new DappWalletCoinEntity(); |
| | | walletCoin.setMemberId(member.getId()); |
| | | walletCoin.setTotalAmount(BigDecimal.ZERO); |
| | | walletCoin.setAvailableAmount(BigDecimal.ZERO); |
| | | walletCoin.setFrozenAmount(BigDecimal.ZERO); |
| | | dappWalletCoinDao.insert(walletCoin); |
| | | } |
| | | |