|
@@ -331,23 +331,23 @@ class FinanceRepository extends BaseRepository
|
|
331
|
$maker = array_column($maker, 'count', 'k');
|
331
|
$maker = array_column($maker, 'count', 'k');
|
|
332
|
|
332
|
|
|
333
|
|
333
|
|
|
334
|
- $data['one'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[1] ?? 0), 'name' => '消费者'];
|
|
|
|
335
|
- $data['one'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[2] ?? 0), 'name' => '业务员'];
|
|
|
|
336
|
- $data['one'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[3] ?? 0), 'name' => '业务经理'];
|
|
|
|
337
|
- $data['one'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[4] ?? 0), 'name' => '初级合伙人'];
|
|
|
|
338
|
- $data['one'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[5] ?? 0), 'name' => '中级合伙人'];
|
|
|
|
|
|
334
|
+ $data['one'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[1] ?? 0), 'name' => '消费者', 'user_group' => 1];
|
|
|
|
335
|
+ $data['one'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[2] ?? 0), 'name' => '业务员', 'user_group' => 2];
|
|
|
|
336
|
+ $data['one'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[3] ?? 0), 'name' => '业务经理', 'user_group' => 3];
|
|
|
|
337
|
+ $data['one'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[4] ?? 0), 'name' => '初级合伙人', 'user_group' => 4];
|
|
|
|
338
|
+ $data['one'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[5] ?? 0), 'name' => '中级合伙人', 'user_group' => 5];
|
|
339
|
|
339
|
|
|
340
|
- $data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[6] ?? 0), 'name' => '高级合伙人'];
|
|
|
|
341
|
- $data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[7] ?? 0), 'name' => '董事'];
|
|
|
|
|
|
340
|
+ $data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[6] ?? 0), 'name' => '高级合伙人', 'user_group' => 6];
|
|
|
|
341
|
+ $data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[7] ?? 0), 'name' => '董事', 'user_group' => 7];
|
|
342
|
$maker = Db::query("SELECT count(uid) as count FROM `rrx_user` where {$where} and originator_id_old > 0");
|
342
|
$maker = Db::query("SELECT count(uid) as count FROM `rrx_user` where {$where} and originator_id_old > 0");
|
|
343
|
- $data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '联创'];
|
|
|
|
|
|
343
|
+ $data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '联创', 'user_group' => 0];
|
|
344
|
|
344
|
|
|
345
|
$whereTow = str_replace("uid", "user_id", $where);
|
345
|
$whereTow = str_replace("uid", "user_id", $where);
|
|
346
|
$maker = Db::query("SELECT count(user_id) as count FROM `rrx_old_user_stock` where {$whereTow}");
|
346
|
$maker = Db::query("SELECT count(user_id) as count FROM `rrx_old_user_stock` where {$whereTow}");
|
|
347
|
|
347
|
|
|
348
|
- $data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '股权'];
|
|
|
|
|
|
348
|
+ $data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '股权', 'user_group' => 0];
|
|
349
|
$maker = Db::query("SELECT count(uid) as count FROM `rrx_merchant` where {$where}");
|
349
|
$maker = Db::query("SELECT count(uid) as count FROM `rrx_merchant` where {$where}");
|
|
350
|
- $data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '商户'];
|
|
|
|
|
|
350
|
+ $data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '商户', 'user_group' => 0];
|
|
351
|
$res['left'] = $data;
|
351
|
$res['left'] = $data;
|
|
352
|
}
|
352
|
}
|
|
353
|
return $res;
|
353
|
return $res;
|