|
|
|
|
4573
|
//总投入
|
4573
|
//总投入
|
4574
|
$data['throw_cost'] = CustTotal::where('is_del',0)->sum('total_cost');
|
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
|
$data['goods_cost'] = $order->goods_cost;
|
4577
|
$data['goods_cost'] = $order->goods_cost;
|
4578
|
$data['freight_cost'] = $order->freight_cost;
|
4578
|
$data['freight_cost'] = $order->freight_cost;
|
4579
|
$data['aftersale_cost'] = $order->aftersale_cost;
|
4579
|
$data['aftersale_cost'] = $order->aftersale_cost;
|