| | |
| | | */
|
| | | @TableField(exist = false)
|
| | | private String totalPerformance;
|
| | | /**
|
| | | * 团队
|
| | | */
|
| | | @TableField(exist = false)
|
| | | private String team;
|
| | |
|
| | | }
|
| | |
| | | Page<AgentFriendRelationEntity> page = new Page<>(request.getPageNum(), request.getPageSize()); |
| | | IPage<AgentFriendRelationEntity> findmemberQuickBuySaleListInPage = agentFriendRelationMapper.findAgentFriendRelationListInPage(page, agentFriendRelationEntity); |
| | | List<AgentFriendRelationEntity> records = findmemberQuickBuySaleListInPage.getRecords(); |
| | | if(records != null && records.size() > 0) { |
| | | for(AgentFriendRelationEntity agentFriendRelation : records) { |
| | | String inviteId = agentFriendRelation.getInviteId(); |
| | | if("90457646".equals(inviteId)) { |
| | | //该邀请码下的所有代理 |
| | | Map<String, Object> columnMap = new HashMap<>(); |
| | | columnMap.put("referer_id", "90457646"); |
| | | List<AgentFriendRelationEntity> selectByMap = agentFriendRelationMapper.selectByMap(columnMap); |
| | | if(selectByMap != null && selectByMap.size() > 0) { |
| | | int i = 1; |
| | | for(AgentFriendRelationEntity agentFriendRelationEntityTeam : selectByMap){ |
| | | agentFriendRelationEntityTeam.setTeam(i+""); |
| | | String inviteIdTeam = agentFriendRelationEntityTeam.getInviteId(); |
| | | // 当前邀请码下的所有代理MemberID |
| | | List<AgentFriendRelationEntity> lowLevelList = agentFriendRelationMapper.selectAgentFriendRelationByMap(inviteIdTeam); |
| | | if(lowLevelList != null && lowLevelList.size() > 0) { |
| | | for(AgentFriendRelationEntity lowLevelAgentFriendRelationEntity: lowLevelList) { |
| | | lowLevelAgentFriendRelationEntity.setTeam(i+""); |
| | | } |
| | | } |
| | | i++; |
| | | } |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | if(records != null && records.size() > 0) { |
| | | for(AgentFriendRelationEntity agentFriendRelation : records) { |
| | |
| | | {field: 'totalWithdrawal', title: '总提现', minWidth: 200,align:'center'},
|
| | | {field: 'totalPerformance', title: '总业绩', minWidth: 200,align:'center'},
|
| | |
|
| | | {field: 'levelId', title: '代理等级',
|
| | | {field: 'levelId', title: '代理',
|
| | | templet: function (d) {
|
| | | return '<span style="color:green;">第'+d.levelId+'级</span>'
|
| | | return '<span style="color:green;">'+d.levelId+'</span>'
|
| | | }, minWidth: 200,align:'center'},
|
| | | {field: 'team', title: '团队',
|
| | | templet: function (d) {
|
| | | if(d.team != null ){
|
| | | return '<span style="color:green;">团队'+d.team+'</span>'
|
| | | }else{
|
| | | return ''
|
| | | }
|
| | | }, minWidth: 200,align:'center'},
|
| | | {field: 'feeIsSelf', title: '手续费是否设置自己',
|
| | | templet: function (d) {
|