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

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

@@ -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');