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

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

@@ -4624,7 +4624,7 @@ class StatisticsController extends Controller
4624 4624
         //总投入
4625 4625
         $data['throw_cost'] = CustTotal::where('is_del',0)->sum('total_cost');
4626 4626
         //订单信息
4627
-        $order = Order::select(DB::raw('sum(cost) as goods_cost, sum(freight_cost) as freight_cost, sum(aftersale_fee) as aftersale_cost, count(1) as order_count, sum(receivedAmount) as order_amount, count(distinct(receiverMobile)) as cust_count, sum(refund_price) as refund_fee'))->where('is_del',0)->where('cost', '>', 0)->first();
4627
+        $order = Order::select(DB::raw('sum(cost) as goods_cost, sum(freight_cost) as freight_cost, sum(aftersale_fee) as aftersale_cost, count(1) as order_count, sum(receivedAmount) as order_amount, count(distinct(receiverMobile)) as cust_count, sum(refund_price) as refund_fee'))->where('is_del',0)->first();
4628 4628
         $data['goods_cost'] = $order->goods_cost;
4629 4629
         $data['freight_cost'] = $order->freight_cost;
4630 4630
         $data['aftersale_cost'] = $order->aftersale_cost;