|
@@ -4573,10 +4573,11 @@ 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'))->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)->where('cost', '>', 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;
|
|
4580
|
+ $data['refund_fee'] = $order->refund_fee;
|
4580
|
4581
|
$data['order_count'] = $order->order_count;
|
4581
|
4582
|
$data['order_amount'] = $order->order_amount;
|
4582
|
4583
|
$data['cust_count'] = $order->cust_count;
|
|
@@ -4623,10 +4624,11 @@ class StatisticsController extends Controller
|
4623
|
4624
|
//总投入
|
4624
|
4625
|
$data['throw_cost'] = CustTotal::where('is_del',0)->sum('total_cost');
|
4625
|
4626
|
//订单信息
|
4626
|
|
- $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'))->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)->where('cost', '>', 0)->first();
|
4627
|
4628
|
$data['goods_cost'] = $order->goods_cost;
|
4628
|
4629
|
$data['freight_cost'] = $order->freight_cost;
|
4629
|
4630
|
$data['aftersale_cost'] = $order->aftersale_cost;
|
|
4631
|
+ $data['refund_fee'] = $order->refund_fee;
|
4630
|
4632
|
$data['order_count'] = $order->order_count;
|
4631
|
4633
|
$data['order_amount'] = $order->order_amount;
|
4632
|
4634
|
$data['cust_count'] = $order->cust_count;
|