|
@@ -4392,6 +4392,7 @@ class StatisticsController extends Controller
|
4392
|
4392
|
$fugou_rate = $customer_count>0 ? round( $customer_fugou_count / $customer_count, 4 ) * 100 . '%' : '';
|
4393
|
4393
|
|
4394
|
4394
|
$result[$k]['customer_count'] = $customer_count;
|
|
4395
|
+ $result[$k]['customer_fugou_count'] = $customer_fugou_count;
|
4395
|
4396
|
$result[$k]['fugou_rate'] = $fugou_rate;
|
4396
|
4397
|
$result[$k]['fugou_rate_sort'] = $customer_count>0 ? round( $customer_fugou_count / $customer_count, 4 ) * 10000 : 0;
|
4397
|
4398
|
|
|
@@ -4478,6 +4479,7 @@ class StatisticsController extends Controller
|
4478
|
4479
|
$fugou_rate = $customer_count>0 ? round( $customer_fugou_count / $customer_count, 4 ) * 100 . '%' : '';
|
4479
|
4480
|
|
4480
|
4481
|
$result[$k]['customer_count'] = $customer_count;
|
|
4482
|
+ $result[$k]['customer_fugou_count'] = $customer_fugou_count;
|
4481
|
4483
|
$result[$k]['fugou_rate'] = $fugou_rate;
|
4482
|
4484
|
$result[$k]['fugou_rate_sort'] = $customer_count>0 ? round( $customer_fugou_count / $customer_count, 4 ) * 10000 : 0;
|
4483
|
4485
|
}
|
|
@@ -4486,8 +4488,10 @@ class StatisticsController extends Controller
|
4486
|
4488
|
$fugou_rate_arr = array_column($result, 'fugou_rate_sort');
|
4487
|
4489
|
array_multisort($fugou_rate_arr, SORT_DESC, $result);
|
4488
|
4490
|
|
4489
|
|
- $indexKey = ['admin_name','pv_count','long_count','fan_add','change_rate','customer_count','order_count','order_amount','fugou_rate'];
|
4490
|
|
- $title = ['销售', 'PV量', '累计预估加粉数', '累计加粉数', '加粉转化率', '下单用户数', '累计下单数', '累计销售额', '复购率'];
|
|
4491
|
+ //$indexKey = ['admin_name','pv_count','long_count','fan_add','change_rate','customer_count','customer_fugou_count','order_count','order_amount','fugou_rate'];
|
|
4492
|
+ $indexKey = ['admin_name','customer_count','customer_fugou_count','order_count','order_amount','fugou_rate'];
|
|
4493
|
+ //$title = ['销售', 'PV量', '累计预估加粉数', '累计加粉数', '加粉转化率', '下单用户数', '复购用户数', '累计下单数', '累计销售额', '复购率'];
|
|
4494
|
+ $title = ['销售', '下单用户数', '复购用户数', '累计下单数', '累计销售额', '复购率'];
|
4491
|
4495
|
$filename = 'xiaoshoufugou_'.date('Y-m-d_H').'.xlsx';
|
4492
|
4496
|
return Order::export_excel($result, $filename, $indexKey, $title);
|
4493
|
4497
|
}
|