|
@@ -34,7 +34,7 @@ class GoodsOrder extends Controller
|
|
|
}
|
|
|
$order_stat = Db::table($this->table)->alias('o')->join('store_member u',' o.mid = u.id ','LEFT')->where($where)->field('o.pay_price')->select();
|
|
|
$this->order_num = empty($order_stat) ? 0: count($order_stat);
|
|
|
- $this->total_money = empty($order_stat) ? 0: array_sum(array_column($order_stat,'pay_price'));
|
|
|
+ $this->total_money = empty($order_stat) ? 0: bcadd(array_sum(array_column($order_stat,'pay_price')),0,2);
|
|
|
$query->alias('o')
|
|
|
->field('o.* , u.name as user_name ,u.phone')
|
|
|
->join('store_member u',' o.mid = u.id ','LEFT');
|