sunhao 5 years ago
parent
commit
8a2e6c8a77
1 changed files with 2 additions and 2 deletions
  1. 2 2
      app/Http/Controllers/Admin/StatisticsController.php

+ 2 - 2
app/Http/Controllers/Admin/StatisticsController.php

@@ -4398,7 +4398,7 @@ class StatisticsController extends Controller
4398 4398
             $result[$k]['customer_count'] = $customer_count;
4399 4399
             $result[$k]['customer_fugou_count'] = $customer_fugou_count;
4400 4400
             $result[$k]['fugou_rate'] = $fugou_rate;
4401
-            $result[$k]['fugou_rate_sort'] = $customer_count>0 ? round( $customer_fugou_count / $customer_count, 4 ) * 10000 : 0;
4401
+            $result[$k]['fugou_rate_sort'] = $no_fugou_count>0 ? round( $fugou_count / $no_fugou_count, 4 ) * 10000 : 0;
4402 4402
 
4403 4403
         }
4404 4404
 
@@ -4488,7 +4488,7 @@ class StatisticsController extends Controller
4488 4488
             $result[$k]['customer_count'] = $customer_count;
4489 4489
             $result[$k]['customer_fugou_count'] = $customer_fugou_count;
4490 4490
             $result[$k]['fugou_rate'] = $fugou_rate;
4491
-            $result[$k]['fugou_rate_sort'] = $customer_count>0 ? round( $customer_fugou_count / $customer_count, 4 ) * 10000 : 0;
4491
+            $result[$k]['fugou_rate_sort'] = $no_fugou_count>0 ? round( $fugou_count / $no_fugou_count, 4 ) * 10000 : 0;
4492 4492
         }
4493 4493
 
4494 4494
         //按复购率排序