|
@@ -387,15 +387,15 @@ class FinanceRepository extends BaseRepository
|
|
387
|
$data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '商户', 'user_group' => 0];
|
387
|
$data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '商户', 'user_group' => 0];
|
|
388
|
|
388
|
|
|
389
|
// 共富会员身份
|
389
|
// 共富会员身份
|
|
390
|
- $sharedUserDataQuery = Db::query("SELECT user_group,count(uid) count FROM `rrx_shared_prosperity_user` where {$where} group by user_group");
|
|
|
|
391
|
- $sharedUserDataQuery = array_column($sharedUserDataQuery, 'count', 'user_group');
|
|
|
|
392
|
- $data['three'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($sharedUserDataQuery[0] ?? 0), 'name' => '普通用户', 'user_group' => 0];
|
|
|
|
393
|
- $data['three'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($sharedUserDataQuery[1] ?? 0), 'name' => '一星合伙人', 'user_group' => 1];
|
|
|
|
394
|
- $data['three'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($sharedUserDataQuery[2] ?? 0), 'name' => '二星合伙人', 'user_group' => 2];
|
|
|
|
395
|
- $data['three'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($sharedUserDataQuery[3] ?? 0), 'name' => '三星合伙人', 'user_group' => 3];
|
|
|
|
396
|
- $data['three'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($sharedUserDataQuery[4] ?? 0), 'name' => '钻石合伙人', 'user_group' => 4];
|
|
|
|
397
|
- $data['three'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($sharedUserDataQuery[5] ?? 0), 'name' => '总裁合伙人', 'user_group' => 5];
|
|
|
|
398
|
- $data['three'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($sharedUserDataQuery[6] ?? 0), 'name' => '联席主席团', 'user_group' => 6];
|
|
|
|
|
|
390
|
+ $sharedUserDataQuery = Db::query("SELECT partner_level,count(uid) count FROM `rrx_shared_prosperity_user` where {$where} group by partner_level");
|
|
|
|
391
|
+ $sharedUserDataQuery = array_column($sharedUserDataQuery, 'count', 'partner_level');
|
|
|
|
392
|
+ $data['three'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($sharedUserDataQuery[0] ?? 0), 'name' => '普通用户', 'partner_level' => 0];
|
|
|
|
393
|
+ $data['three'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($sharedUserDataQuery[1] ?? 0), 'name' => '一星合伙人', 'partner_level' => 1];
|
|
|
|
394
|
+ $data['three'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($sharedUserDataQuery[2] ?? 0), 'name' => '二星合伙人', 'partner_level' => 2];
|
|
|
|
395
|
+ $data['three'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($sharedUserDataQuery[3] ?? 0), 'name' => '三星合伙人', 'partner_level' => 3];
|
|
|
|
396
|
+ $data['three'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($sharedUserDataQuery[4] ?? 0), 'name' => '钻石合伙人', 'partner_level' => 4];
|
|
|
|
397
|
+ $data['three'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($sharedUserDataQuery[5] ?? 0), 'name' => '总裁合伙人', 'partner_level' => 5];
|
|
|
|
398
|
+ $data['three'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($sharedUserDataQuery[6] ?? 0), 'name' => '联席主席团', 'partner_level' => 6];
|
|
399
|
|
399
|
|
|
400
|
$res['left'] = $data;
|
400
|
$res['left'] = $data;
|
|
401
|
}
|
401
|
}
|