|
@@ -59,9 +59,9 @@ class Order extends Controller
|
|
|
{
|
|
|
$array = array();
|
|
|
$array['all_order'] = $this->byWhere(2)->count();
|
|
|
- $array['all_price'] = $this->byWhere(2)->where('a.status', 'in', array('2','3','4','5'))->sum('a.price_total');
|
|
|
- $array['weixin_all_price'] = $this->byWhere(2)->where('a.status', 'in', array('2','3','4','5'))->where('a.pay_type', '1')->where('refund_price','=',0)->sum('a.price_total');
|
|
|
- $array['zfb_all_price'] = $this->byWhere(2)->where('a.status', 'in', array('2','3','4','5'))->where('a.pay_type', '2')->where('refund_price','=',0)->sum('a.price_total');
|
|
|
+ $array['all_price'] = $this->byWhere(2)->where('a.status', '>',0)->sum('a.price_total');
|
|
|
+ $array['weixin_all_price'] = $this->byWhere(2)->where('a.status', '>',0)->where('a.pay_type', '1')->sum('a.price_total');
|
|
|
+ $array['zfb_all_price'] = $this->byWhere(2)->where('a.status', '>',0)->where('a.pay_type', '2')->sum('a.price_total');
|
|
|
return $array;
|
|
|
}
|
|
|
|