|
@@ -204,26 +204,22 @@ class FinanceRepository extends BaseRepository
|
|
204
|
$maker = array_column($maker, 'count', 'k');
|
204
|
$maker = array_column($maker, 'count', 'k');
|
|
205
|
|
205
|
|
|
206
|
|
206
|
|
|
207
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[1] ?? 0), 'name' => '消费者'];
|
|
|
|
208
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[2] ?? 0), 'name' => '业务员'];
|
|
|
|
209
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[3] ?? 0), 'name' => '业务经理'];
|
|
|
|
210
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[5] ?? 0), 'name' => '初级合伙人'];
|
|
|
|
211
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[6] ?? 0), 'name' => '中级合伙人'];
|
|
|
|
212
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[7] ?? 0), 'name' => '高级合伙人'];
|
|
|
|
213
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[8] ?? 0), 'name' => '董事'];
|
|
|
|
214
|
-
|
|
|
|
|
|
207
|
+ $data['one'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[1] ?? 0), 'name' => '消费者'];
|
|
|
|
208
|
+ $data['one'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[2] ?? 0), 'name' => '业务员'];
|
|
|
|
209
|
+ $data['one'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[3] ?? 0), 'name' => '业务经理'];
|
|
|
|
210
|
+ $data['one'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[5] ?? 0), 'name' => '初级合伙人'];
|
|
|
|
211
|
+ $data['one'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[6] ?? 0), 'name' => '中级合伙人'];
|
|
|
|
212
|
+
|
|
|
|
213
|
+ $data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[7] ?? 0), 'name' => '高级合伙人'];
|
|
|
|
214
|
+ $data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[8] ?? 0), 'name' => '董事'];
|
|
215
|
$maker = Db::query("SELECT count(uid) as count FROM `rrx_user` where {$where} and originator_id_old > 0");
|
215
|
$maker = Db::query("SELECT count(uid) as count FROM `rrx_user` where {$where} and originator_id_old > 0");
|
|
216
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '联创'];
|
|
|
|
217
|
-
|
|
|
|
|
|
216
|
+ $data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '联创'];
|
|
218
|
$maker = Db::query("SELECT count(user_id) as count FROM `rrx_old_user_stock` where {$where}");
|
217
|
$maker = Db::query("SELECT count(user_id) as count FROM `rrx_old_user_stock` where {$where}");
|
|
219
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '股权'];
|
|
|
|
220
|
-
|
|
|
|
|
|
218
|
+ $data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '股权'];
|
|
221
|
$maker = Db::query("SELECT count(uid) as count FROM `rrx_merchant` where {$where}");
|
219
|
$maker = Db::query("SELECT count(uid) as count FROM `rrx_merchant` where {$where}");
|
|
222
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '商户'];
|
|
|
|
|
|
220
|
+ $data['tow'][] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '商户'];
|
|
223
|
|
221
|
|
|
224
|
- $res['left'][] = $data;
|
|
|
|
225
|
- // $maker = Db::query("SELECT count(uid) as count FROM `rrx_merchant` where {$where}");
|
|
|
|
226
|
- // $res['right'][] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '创客'];
|
|
|
|
|
|
222
|
+ $res['left'] = $data;
|
|
227
|
|
223
|
|
|
228
|
return $res;
|
224
|
return $res;
|
|
229
|
}
|
225
|
}
|
|
@@ -271,26 +267,15 @@ class FinanceRepository extends BaseRepository
|
|
271
|
$userByCodeCount = Db::query("SELECT 'temp' as `temp1`, count(*) count FROM `rrx_user` where {$where} and user_group =4 and is_show = 3");
|
267
|
$userByCodeCount = Db::query("SELECT 'temp' as `temp1`, count(*) count FROM `rrx_user` where {$where} and user_group =4 and is_show = 3");
|
|
272
|
$userByCodeCount = array_column($userByCodeCount, 'count', 'temp1');
|
268
|
$userByCodeCount = array_column($userByCodeCount, 'count', 'temp1');
|
|
273
|
|
269
|
|
|
274
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[1] ?? 0), 'name' => '消费者'];
|
|
|
|
275
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[2] ?? 0), 'name' => '业务员'];
|
|
|
|
276
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[3] ?? 0), 'name' => '业务经理'];
|
|
|
|
277
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[5] ?? 0), 'name' => '初级合伙人'];
|
|
|
|
278
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[6] ?? 0), 'name' => '中级合伙人'];
|
|
|
|
279
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[7] ?? 0), 'name' => '高级合伙人'];
|
|
|
|
280
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[8] ?? 0), 'name' => '董事'];
|
|
|
|
281
|
- $list1 = array(
|
|
|
|
282
|
- array('className' => 'el-icon-s-goods', 'count' => intval($maker['4-2'] ?? 0), 'name' => '集团会员'),//is_show=2
|
|
|
|
283
|
- array('className' => 'el-icon-s-goods', 'count' => intval($maker['4-1'] ?? 0), 'name' => '电商创客'),
|
|
|
|
284
|
- array('className' => 'el-icon-s-goods', 'count' => intval($userByCodeCount['temp'] ?? 0), 'name' => '激活创客'),
|
|
|
|
285
|
- );
|
|
|
|
|
|
270
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '会员总人数'];
|
|
|
|
271
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '今日新增会员'];
|
|
|
|
272
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '被冻结会员数'];
|
|
|
|
273
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '会员专区总业绩'];
|
|
|
|
274
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '会员专区上周总业绩'];
|
|
|
|
275
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '会员专区本周总业绩'];
|
|
|
|
276
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '会员专区今日总业绩'];
|
|
286
|
|
277
|
|
|
287
|
- if ($mer_id) {
|
|
|
|
288
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[4] ?? 0), 'name' => '创客'];
|
|
|
|
289
|
- }
|
|
|
|
290
|
$res['left'][] = $data;
|
278
|
$res['left'][] = $data;
|
|
291
|
- $maker = Db::query("SELECT count(uid) as count FROM `rrx_merchant` where {$where}");
|
|
|
|
292
|
- $res['right'][] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '创客'];
|
|
|
|
293
|
-
|
|
|
|
294
|
return $res;
|
279
|
return $res;
|
|
295
|
}
|
280
|
}
|
|
296
|
|
281
|
|
|
@@ -330,7 +315,6 @@ class FinanceRepository extends BaseRepository
|
|
330
|
}
|
315
|
}
|
|
331
|
$dataQuery = Db::query("SELECT user_group,count(uid) count FROM `rrx_user` where {$where} group by user_group");
|
316
|
$dataQuery = Db::query("SELECT user_group,count(uid) count FROM `rrx_user` where {$where} group by user_group");
|
|
332
|
$dataQuery = array_column($dataQuery, 'count', 'user_group');
|
317
|
$dataQuery = array_column($dataQuery, 'count', 'user_group');
|
|
333
|
- $shopPartnerCount = Db::query("SELECT user_group,count(uid) count FROM `rrx_user` where mer_id={$mer_id} and is_shop_partner=1 group by user_group");
|
|
|
|
334
|
|
318
|
|
|
335
|
$maker = Db::query("SELECT CONCAT(`user_group`, '-',`is_show`) as k, count(uid) count FROM `rrx_user` where {$where} group by user_group,is_show");
|
319
|
$maker = Db::query("SELECT CONCAT(`user_group`, '-',`is_show`) as k, count(uid) count FROM `rrx_user` where {$where} group by user_group,is_show");
|
|
336
|
$maker = array_column($maker, 'count', 'k');
|
320
|
$maker = array_column($maker, 'count', 'k');
|
|
@@ -338,26 +322,12 @@ class FinanceRepository extends BaseRepository
|
|
338
|
$userByCodeCount = Db::query("SELECT 'temp' as `temp1`, count(*) count FROM `rrx_user` where {$where} and user_group =4 and is_show = 3");
|
322
|
$userByCodeCount = Db::query("SELECT 'temp' as `temp1`, count(*) count FROM `rrx_user` where {$where} and user_group =4 and is_show = 3");
|
|
339
|
$userByCodeCount = array_column($userByCodeCount, 'count', 'temp1');
|
323
|
$userByCodeCount = array_column($userByCodeCount, 'count', 'temp1');
|
|
340
|
|
324
|
|
|
341
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[1] ?? 0), 'name' => '消费者'];
|
|
|
|
342
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[2] ?? 0), 'name' => '业务员'];
|
|
|
|
343
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[3] ?? 0), 'name' => '业务经理'];
|
|
|
|
344
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[5] ?? 0), 'name' => '初级合伙人'];
|
|
|
|
345
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[6] ?? 0), 'name' => '中级合伙人'];
|
|
|
|
346
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[7] ?? 0), 'name' => '高级合伙人'];
|
|
|
|
347
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[8] ?? 0), 'name' => '董事'];
|
|
|
|
348
|
- $list1 = array(
|
|
|
|
349
|
- array('className' => 'el-icon-s-goods', 'count' => intval($maker['4-2'] ?? 0), 'name' => '集团会员'),//is_show=2
|
|
|
|
350
|
- array('className' => 'el-icon-s-goods', 'count' => intval($maker['4-1'] ?? 0), 'name' => '电商创客'),
|
|
|
|
351
|
- array('className' => 'el-icon-s-goods', 'count' => intval($userByCodeCount['temp'] ?? 0), 'name' => '激活创客'),
|
|
|
|
352
|
- );
|
|
|
|
353
|
-
|
|
|
|
354
|
- if ($mer_id) {
|
|
|
|
355
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[4] ?? 0), 'name' => '创客'];
|
|
|
|
356
|
- }
|
|
|
|
|
|
325
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '平台总PV'];
|
|
|
|
326
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '会员存量总PV'];
|
|
|
|
327
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '本周新增PV总量'];
|
|
|
|
328
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '今日新增PV总量'];
|
|
|
|
329
|
+
|
|
357
|
$res['left'][] = $data;
|
330
|
$res['left'][] = $data;
|
|
358
|
- $maker = Db::query("SELECT count(uid) as count FROM `rrx_merchant` where {$where}");
|
|
|
|
359
|
- $res['right'][] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '创客'];
|
|
|
|
360
|
-
|
|
|
|
361
|
return $res;
|
331
|
return $res;
|
|
362
|
}
|
332
|
}
|
|
363
|
|
333
|
|
|
@@ -397,7 +367,6 @@ class FinanceRepository extends BaseRepository
|
|
397
|
}
|
367
|
}
|
|
398
|
$dataQuery = Db::query("SELECT user_group,count(uid) count FROM `rrx_user` where {$where} group by user_group");
|
368
|
$dataQuery = Db::query("SELECT user_group,count(uid) count FROM `rrx_user` where {$where} group by user_group");
|
|
399
|
$dataQuery = array_column($dataQuery, 'count', 'user_group');
|
369
|
$dataQuery = array_column($dataQuery, 'count', 'user_group');
|
|
400
|
- $shopPartnerCount = Db::query("SELECT user_group,count(uid) count FROM `rrx_user` where mer_id={$mer_id} and is_shop_partner=1 group by user_group");
|
|
|
|
401
|
|
370
|
|
|
402
|
$maker = Db::query("SELECT CONCAT(`user_group`, '-',`is_show`) as k, count(uid) count FROM `rrx_user` where {$where} group by user_group,is_show");
|
371
|
$maker = Db::query("SELECT CONCAT(`user_group`, '-',`is_show`) as k, count(uid) count FROM `rrx_user` where {$where} group by user_group,is_show");
|
|
403
|
$maker = array_column($maker, 'count', 'k');
|
372
|
$maker = array_column($maker, 'count', 'k');
|
|
@@ -405,26 +374,15 @@ class FinanceRepository extends BaseRepository
|
|
405
|
$userByCodeCount = Db::query("SELECT 'temp' as `temp1`, count(*) count FROM `rrx_user` where {$where} and user_group =4 and is_show = 3");
|
374
|
$userByCodeCount = Db::query("SELECT 'temp' as `temp1`, count(*) count FROM `rrx_user` where {$where} and user_group =4 and is_show = 3");
|
|
406
|
$userByCodeCount = array_column($userByCodeCount, 'count', 'temp1');
|
375
|
$userByCodeCount = array_column($userByCodeCount, 'count', 'temp1');
|
|
407
|
|
376
|
|
|
408
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[1] ?? 0), 'name' => '消费者'];
|
|
|
|
409
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[2] ?? 0), 'name' => '业务员'];
|
|
|
|
410
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[3] ?? 0), 'name' => '业务经理'];
|
|
|
|
411
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[5] ?? 0), 'name' => '初级合伙人'];
|
|
|
|
412
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[6] ?? 0), 'name' => '中级合伙人'];
|
|
|
|
413
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[7] ?? 0), 'name' => '高级合伙人'];
|
|
|
|
414
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[8] ?? 0), 'name' => '董事'];
|
|
|
|
415
|
- $list1 = array(
|
|
|
|
416
|
- array('className' => 'el-icon-s-goods', 'count' => intval($maker['4-2'] ?? 0), 'name' => '集团会员'),//is_show=2
|
|
|
|
417
|
- array('className' => 'el-icon-s-goods', 'count' => intval($maker['4-1'] ?? 0), 'name' => '电商创客'),
|
|
|
|
418
|
- array('className' => 'el-icon-s-goods', 'count' => intval($userByCodeCount['temp'] ?? 0), 'name' => '激活创客'),
|
|
|
|
419
|
- );
|
|
|
|
420
|
-
|
|
|
|
421
|
- if ($mer_id) {
|
|
|
|
422
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[4] ?? 0), 'name' => '创客'];
|
|
|
|
423
|
- }
|
|
|
|
|
|
377
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '平台总VR'];
|
|
|
|
378
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '会员存量总VR'];
|
|
|
|
379
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '本周新增VR总量'];
|
|
|
|
380
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '今日新增VR总量'];
|
|
|
|
381
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '会员消耗总VR'];
|
|
|
|
382
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '本周消耗VR总量'];
|
|
|
|
383
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '今日消耗VR总量'];
|
|
|
|
384
|
+
|
|
424
|
$res['left'][] = $data;
|
385
|
$res['left'][] = $data;
|
|
425
|
- $maker = Db::query("SELECT count(uid) as count FROM `rrx_merchant` where {$where}");
|
|
|
|
426
|
- $res['right'][] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '创客'];
|
|
|
|
427
|
-
|
|
|
|
428
|
return $res;
|
386
|
return $res;
|
|
429
|
}
|
387
|
}
|
|
430
|
|
388
|
|
|
@@ -463,7 +421,6 @@ class FinanceRepository extends BaseRepository
|
|
463
|
}
|
421
|
}
|
|
464
|
$dataQuery = Db::query("SELECT user_group,count(uid) count FROM `rrx_user` where {$where} group by user_group");
|
422
|
$dataQuery = Db::query("SELECT user_group,count(uid) count FROM `rrx_user` where {$where} group by user_group");
|
|
465
|
$dataQuery = array_column($dataQuery, 'count', 'user_group');
|
423
|
$dataQuery = array_column($dataQuery, 'count', 'user_group');
|
|
466
|
- $shopPartnerCount = Db::query("SELECT user_group,count(uid) count FROM `rrx_user` where mer_id={$mer_id} and is_shop_partner=1 group by user_group");
|
|
|
|
467
|
|
424
|
|
|
468
|
$maker = Db::query("SELECT CONCAT(`user_group`, '-',`is_show`) as k, count(uid) count FROM `rrx_user` where {$where} group by user_group,is_show");
|
425
|
$maker = Db::query("SELECT CONCAT(`user_group`, '-',`is_show`) as k, count(uid) count FROM `rrx_user` where {$where} group by user_group,is_show");
|
|
469
|
$maker = array_column($maker, 'count', 'k');
|
426
|
$maker = array_column($maker, 'count', 'k');
|
|
@@ -471,25 +428,16 @@ class FinanceRepository extends BaseRepository
|
|
471
|
$userByCodeCount = Db::query("SELECT 'temp' as `temp1`, count(*) count FROM `rrx_user` where {$where} and user_group =4 and is_show = 3");
|
428
|
$userByCodeCount = Db::query("SELECT 'temp' as `temp1`, count(*) count FROM `rrx_user` where {$where} and user_group =4 and is_show = 3");
|
|
472
|
$userByCodeCount = array_column($userByCodeCount, 'count', 'temp1');
|
429
|
$userByCodeCount = array_column($userByCodeCount, 'count', 'temp1');
|
|
473
|
|
430
|
|
|
474
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[1] ?? 0), 'name' => '消费者'];
|
|
|
|
475
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[2] ?? 0), 'name' => '业务员'];
|
|
|
|
476
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[3] ?? 0), 'name' => '业务经理'];
|
|
|
|
477
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[5] ?? 0), 'name' => '初级合伙人'];
|
|
|
|
478
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[6] ?? 0), 'name' => '中级合伙人'];
|
|
|
|
479
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[7] ?? 0), 'name' => '高级合伙人'];
|
|
|
|
480
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[8] ?? 0), 'name' => '董事'];
|
|
|
|
481
|
- $list1 = array(
|
|
|
|
482
|
- array('className' => 'el-icon-s-goods', 'count' => intval($maker['4-2'] ?? 0), 'name' => '集团会员'),//is_show=2
|
|
|
|
483
|
- array('className' => 'el-icon-s-goods', 'count' => intval($maker['4-1'] ?? 0), 'name' => '电商创客'),
|
|
|
|
484
|
- array('className' => 'el-icon-s-goods', 'count' => intval($userByCodeCount['temp'] ?? 0), 'name' => '激活创客'),
|
|
|
|
485
|
- );
|
|
|
|
|
|
431
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '平台总积分'];
|
|
|
|
432
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '会员存量总积分'];
|
|
|
|
433
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '本周新增积分总量'];
|
|
|
|
434
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '今日新增积分总量'];
|
|
|
|
435
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '会员消耗总积分'];
|
|
|
|
436
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '本周消耗积分总量'];
|
|
|
|
437
|
+ $data[] = ['className' => 'el-icon-s-goods', 'count' => 0, 'name' => '今日消耗积分总量'];
|
|
|
|
438
|
+
|
|
486
|
|
439
|
|
|
487
|
- if ($mer_id) {
|
|
|
|
488
|
- $data[] = ['className' => 'el-icon-s-goods', 'count' => (int)($dataQuery[4] ?? 0), 'name' => '创客'];
|
|
|
|
489
|
- }
|
|
|
|
490
|
$res['left'][] = $data;
|
440
|
$res['left'][] = $data;
|
|
491
|
- $maker = Db::query("SELECT count(uid) as count FROM `rrx_merchant` where {$where}");
|
|
|
|
492
|
- $res['right'][] = ['className' => 'el-icon-s-goods', 'count' => set_price_rtrim($maker[0]['count'] ?? 0), 'name' => '创客'];
|
|
|
|
493
|
|
441
|
|
|
494
|
return $res;
|
442
|
return $res;
|
|
495
|
}
|
443
|
}
|
|
@@ -498,7 +446,6 @@ class FinanceRepository extends BaseRepository
|
|
498
|
|
446
|
|
|
499
|
public function jieyu($type, $day, $mer_id = 0)
|
447
|
public function jieyu($type, $day, $mer_id = 0)
|
|
500
|
{
|
448
|
{
|
|
501
|
-
|
|
|
|
502
|
if ($mer_id) {
|
449
|
if ($mer_id) {
|
|
503
|
$uid = Db::name('merchant')->where('mer_id', $mer_id)->value('uid');
|
450
|
$uid = Db::name('merchant')->where('mer_id', $mer_id)->value('uid');
|
|
504
|
$where = "mer_id = " . $mer_id . " and paid = 1";
|
451
|
$where = "mer_id = " . $mer_id . " and paid = 1";
|
|
@@ -588,7 +535,15 @@ class FinanceRepository extends BaseRepository
|
|
588
|
$vr = Db::name('user_sign_vr')
|
535
|
$vr = Db::name('user_sign_vr')
|
|
589
|
->whereBetween('settlement_time', [date('Y-m-d H:i:s', strtotime($day)), date('Y-m-d H:i:s', strtotime($day) + 24 * 3600)])
|
536
|
->whereBetween('settlement_time', [date('Y-m-d H:i:s', strtotime($day)), date('Y-m-d H:i:s', strtotime($day) + 24 * 3600)])
|
|
590
|
->sum('number');
|
537
|
->sum('number');
|
|
|
|
538
|
+
|
|
|
|
539
|
+ $suoke = Db::name('user_bill')
|
|
|
|
540
|
+ ->where('commission_type', 7)
|
|
|
|
541
|
+ ->whereBetween('create_time', [date('Y-m-d H:i:s', strtotime($day)), date('Y-m-d H:i:s', strtotime($day) + 24 * 3600)])
|
|
|
|
542
|
+ ->sum('number');
|
|
591
|
|
543
|
|
|
|
|
544
|
+ $pv = Db::name('user_pv_log')
|
|
|
|
545
|
+ ->whereBetween('settlement_time', [date('Y-m-d H:i:s', strtotime($day)), date('Y-m-d H:i:s', strtotime($day) + 24 * 3600)])
|
|
|
|
546
|
+ ->sum('pv');
|
|
592
|
|
547
|
|
|
593
|
} else if ($type == 2 and $day != '') {
|
548
|
} else if ($type == 2 and $day != '') {
|
|
594
|
$date = new \DateTime($day);
|
549
|
$date = new \DateTime($day);
|
|
@@ -671,6 +626,15 @@ class FinanceRepository extends BaseRepository
|
|
671
|
->whereBetween('settlement_time', [date('Y-m-01 00:00:00', strtotime($year)), date('Y-m-d H:i:s', strtotime($lastDay) + 24 * 3600)])
|
626
|
->whereBetween('settlement_time', [date('Y-m-01 00:00:00', strtotime($year)), date('Y-m-d H:i:s', strtotime($lastDay) + 24 * 3600)])
|
|
672
|
->sum('number');
|
627
|
->sum('number');
|
|
673
|
|
628
|
|
|
|
|
629
|
+ $suoke = Db::name('user_bill')
|
|
|
|
630
|
+ ->where('commission_type', 7)
|
|
|
|
631
|
+ ->whereBetween('create_time', [date('Y-m-01 00:00:00', strtotime($year)), date('Y-m-d H:i:s', strtotime($lastDay) + 24 * 3600)])
|
|
|
|
632
|
+ ->sum('number');
|
|
|
|
633
|
+
|
|
|
|
634
|
+ $pv = Db::name('user_pv_log')
|
|
|
|
635
|
+ ->whereBetween('settlement_time', [date('Y-m-01 00:00:00', strtotime($year)), date('Y-m-d H:i:s', strtotime($lastDay) + 24 * 3600)])
|
|
|
|
636
|
+ ->sum('pv');
|
|
|
|
637
|
+
|
|
674
|
} else {
|
638
|
} else {
|
|
675
|
$ruzhang = Db::name('enterprise_platform_income_detail')->where("deal_time <'" . date('Y-m-d H:i:s') . "'")
|
639
|
$ruzhang = Db::name('enterprise_platform_income_detail')->where("deal_time <'" . date('Y-m-d H:i:s') . "'")
|
|
676
|
->when($mer_id, function ($query) use ($mer_id) {
|
640
|
->when($mer_id, function ($query) use ($mer_id) {
|
|
@@ -731,14 +695,20 @@ class FinanceRepository extends BaseRepository
|
|
731
|
|
695
|
|
|
732
|
$vr = Db::name('user_sign_vr')
|
696
|
$vr = Db::name('user_sign_vr')
|
|
733
|
->sum('number');
|
697
|
->sum('number');
|
|
|
|
698
|
+
|
|
|
|
699
|
+ $suoke = Db::name('user_bill')
|
|
|
|
700
|
+ ->where('commission_type', 7)
|
|
|
|
701
|
+ ->sum('number');
|
|
|
|
702
|
+
|
|
|
|
703
|
+ $pv = Db::name('user_pv_log')
|
|
|
|
704
|
+ ->sum('pv');
|
|
734
|
}
|
705
|
}
|
|
735
|
|
706
|
|
|
736
|
|
707
|
|
|
737
|
$yingyemoney = Db::name('store_order')->where($where)->sum('pay_price');
|
708
|
$yingyemoney = Db::name('store_order')->where($where)->sum('pay_price');
|
|
738
|
$hf_fee_amt = Db::name('store_order')->where($where_order)->sum('hf_fee_amt');//汇付手续费
|
709
|
$hf_fee_amt = Db::name('store_order')->where($where_order)->sum('hf_fee_amt');//汇付手续费
|
|
739
|
|
710
|
|
|
740
|
- return compact('yingyemoney', 'hf_fee_amt', 'my_money', 'tixinan', 'ruzhang', 'shouyi', 'jieyu', 'integral', 'yanglao', 'gongxian', 'jingdou', 'hongbao', 'fugou', 'vr');
|
|
|
|
741
|
-
|
|
|
|
|
|
711
|
+ return compact('yingyemoney', 'hf_fee_amt', 'my_money', 'tixinan', 'ruzhang', 'shouyi', 'jieyu', 'integral', 'yanglao', 'gongxian', 'jingdou', 'hongbao', 'fugou', 'vr', 'suoke', 'pv');
|
|
742
|
}
|
712
|
}
|
|
743
|
|
713
|
|
|
744
|
/**
|
714
|
/**
|