| | |
| | | }else{ |
| | | teamUpVo.setDirectCnt(CollUtil.isNotEmpty(directMembers) ? 0 : directMembers.size()); |
| | | List<DappMemberEntity> directCntAva = directMembers.stream().filter(dappMemberEntity -> dappMemberEntity.getActiveStatus() == 1).collect(Collectors.toList()); |
| | | teamUpVo.setDirectCntAva(CollUtil.isNotEmpty(directCntAva) ? 0 : directCntAva.size()); |
| | | teamUpVo.setDirectCntAva(CollUtil.isEmpty(directCntAva) ? 0 : directCntAva.size()); |
| | | if(CollUtil.isNotEmpty(directCntAva)){ |
| | | List<Long> collectDirect = directCntAva.stream().map(DappMemberEntity::getId).collect(Collectors.toList()); |
| | | QueryWrapper<DappStorage> storageQueryWrapper = new QueryWrapper<>(); |
| | |
| | | .map(DappStorage::getAmount) // 映射amount到流中 |
| | | .reduce(BigDecimal.ZERO, BigDecimal::add); |
| | | teamUpVo.setDirectAchieve(directAchieve); |
| | | } |
| | | }else{ |
| | | teamUpVo.setDirectAchieve(BigDecimal.ZERO); |
| | | } |
| | | |
| | | List<DappMemberEntity> teamMembers = dappMemberDao.selectChildMemberDirectOrNot(memberEntity.getInviteId(), 2, null); |
| | | teamUpVo.setTeamCnt(CollUtil.isNotEmpty(teamMembers) ? 0 : teamMembers.size()); |
| | | teamUpVo.setTeamCnt(CollUtil.isEmpty(teamMembers) ? 0 : teamMembers.size()); |
| | | List<DappMemberEntity> teamCntAva = teamMembers.stream().filter(dappMemberEntity -> dappMemberEntity.getActiveStatus() == 1).collect(Collectors.toList()); |
| | | teamUpVo.setTeamCntAva(CollUtil.isNotEmpty(teamCntAva) ? 0 : teamCntAva.size()); |
| | | |
| | |
| | | .map(DappStorage::getAmount) // 映射amount到流中 |
| | | .reduce(BigDecimal.ZERO, BigDecimal::add); |
| | | teamUpVo.setTeamAchieve(teamAchieve); |
| | | } |
| | | }else{ |
| | | teamUpVo.setTeamAchieve(BigDecimal.ZERO); |
| | | } |
| | | } |
| | | return teamUpVo; |
| | | } |
| | | |