|
@@ -60,7 +60,7 @@ class Order extends Controller
|
|
|
$array = array();
|
|
|
$array['all_order'] = $this->byWhere(2)->count();
|
|
|
$array['all_price'] = $this->byWhere(2)->where('a.status', '>',0)->sum('a.price_total');
|
|
|
- $array['all_refund_price'] = $this->byWhere(2)->where('a.refund_price', '>',0)->sum('a.price_total');
|
|
|
+ $array['all_refund_price'] = $this->byWhere(2)->where('a.refund_price', '>',0)->sum('a.refund_price');
|
|
|
$array['all_price'] = $array['all_price'] - $array['all_refund_price'];
|
|
|
$array['weixin_all_price'] = $this->byWhere(2)->where('a.status', '>',0)->where('a.pay_type', '1')->sum('a.price_total');
|
|
|
$array['weixin_refund_all_price'] = $this->byWhere(2)->where('a.refund_price', '>',0)->where('a.pay_type', '1')->sum('a.refund_price');
|