| | |
| | | throw new FebsException("recommender is not exist"); |
| | | } |
| | | |
| | | List<DappMemberEntity> child = dappMemberDao.selectChildMemberDirectOrNot(connectDto.getInviteId(), 1); |
| | | List<DappMemberEntity> child = dappMemberDao.selectChildMemberDirectOrNot(connectDto.getInviteId(), 1, null); |
| | | if (child.size() == 6) { |
| | | throw new FebsException("Invite Code is Invalid"); |
| | | } |
| | |
| | | } |
| | | |
| | | String key = LoginUserUtil.getLoginKey(connectDto.getAddress(), connectDto.getNonce(), connectDto.getSign()); |
| | | redisUtils.set(connectDto.getAddress(), member); |
| | | redisUtils.hset(AppContants.REDIS_KEY_MEMBER_INFO, connectDto.getAddress(), member); |
| | | |
| | | Map<Object, Object> keys = redisUtils.hmget(AppContants.REDIS_KEY_SIGN); |
| | | if (keys == null) { |
| | |
| | | walletCoin.setMemberId(member.getId()); |
| | | dappWalletCoinDao.insert(walletCoin); |
| | | |
| | | DappWalletMineEntity walletMine = new DappWalletMineEntity(); |
| | | walletMine.setMemberId(member.getId()); |
| | | dappWalletMineDao.insert(walletMine); |
| | | |
| | | if (StrUtil.isEmpty(refererId)) { |
| | | refererId = "0"; |
| | | // 若没有推荐人,则直接激活 |
| | |
| | | } |
| | | |
| | | @Override |
| | | public TeamListVo findTeamList(TeamListDto teamListDto) { |
| | | public TeamListVo findTeamList() { |
| | | DappMemberEntity member = LoginUserUtil.getAppUser(); |
| | | |
| | | DappAchieveMemberTreeEntity topNode = dappAchieveMemberTreeDao.selectNodeByDeep(member.getId(), 1); |
| | | if (topNode == null) { |
| | | return null; |
| | | } |
| | | return buildTeamMatrix(topNode); |
| | | } |
| | | |
| | |
| | | for (DappAchieveMemberTreeEntity childNode : childNodes) { |
| | | list.add(buildTeamMatrix(childNode)); |
| | | } |
| | | teamListVo.setChildren(list); |
| | | return teamListVo; |
| | | } |
| | | } |