提交 71a832fd 编写于 作者: D devil_gong

统计数据优化

上级 fb536272
...@@ -426,7 +426,7 @@ class StatisticalService ...@@ -426,7 +426,7 @@ class StatisticalService
{ {
$data = []; $data = [];
} else { } else {
$data = Db::name('OrderDetail')->field('title AS name,sum(buy_number) AS value')->where('order_id', 'IN', $order_ids)->select(); $data = Db::name('OrderDetail')->field('title AS name,sum(buy_number) AS value')->where('order_id', 'IN', $order_ids)->group('goods_id')->select();
} }
if(!empty($data)) if(!empty($data))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册