| | |
| | | @ApiModelProperty(value = "用户等级") |
| | | private String accountLevel; |
| | | |
| | | @ApiModelProperty(value = "代理等级") |
| | | private String level; |
| | | |
| | | } |
| | |
| | | a.phone, |
| | | a.invite_id, |
| | | a.account_level, |
| | | a.level, |
| | | 2 isCurrent, |
| | | a.created_time, |
| | | (select sum(e.amount) |
| | | from mall_order_info e |
| | | inner join mall_member b on e.member_id=b.ID |
| | | inner join mall_order_item c on e.id = c.order_id -- and c.is_normal=2 |
| | | where e.status = 4 and (b.invite_id=a.invite_id or b.referrer_id=a.invite_id)) amount, |
| | | where e.status = 4 and find_in_set(a.invite_id, b.referrer_ids)) amount, |
| | | (select count(1) from mall_order_info b |
| | | inner join mall_member e on e.id=b.member_id and b.status = 4 |
| | | where find_in_set(a.invite_id, e.referrer_ids)) orderCnt, |
| | |
| | | {field: 'name', title: '名称', minWidth: 100,align:'left'}, |
| | | {field: 'inviteId', title: '邀请码', minWidth: 100,align:'left'}, |
| | | {field: 'levelName', title: '代理层级', minWidth: 100,align:'left'}, |
| | | {field: 'memberNum', title: '下级', minWidth: 100,align:'left'}, |
| | | // {field: 'memberNum', title: '下级', minWidth: 100,align:'left'}, |
| | | {field: 'allMemberNum', title: '我的团队总数', minWidth: 100,align:'left'}, |
| | | {field: 'amount', title: '团队业绩', minWidth: 100,align:'left'}, |
| | | {title: '操作', |