544782275@qq.com hace 3 años
padre
commit
6a54bba3a7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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');