544782275@qq.com 3 years ago
parent
commit
55683520bf
1 changed files with 3 additions and 3 deletions
  1. 3 3
      application/store/controller/Order.php

+ 3 - 3
application/store/controller/Order.php

@@ -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;
     }