sunhao 5 years ago
parent
commit
9af5ee89dd
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

@@ -4573,7 +4573,7 @@ class StatisticsController extends Controller
4573 4573
             //总投入
4574 4574
             $data['throw_cost'] = CustTotal::where('is_del',0)->sum('total_cost');
4575 4575
             //订单信息
4576
-            $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();
4576
+            $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();
4577 4577
             $data['goods_cost'] = $order->goods_cost;
4578 4578
             $data['freight_cost'] = $order->freight_cost;
4579 4579
             $data['aftersale_cost'] = $order->aftersale_cost;