统计修改
This commit is contained in:
parent
8eb1087997
commit
9531c434dc
@ -874,7 +874,7 @@ class Statistics extends BaseController
|
||||
$m = bcmul(bcdiv($m,$max,3),100,1);
|
||||
}
|
||||
$return['liuliang'] = $m;
|
||||
$return['month'] = 12;
|
||||
$return['month'] = date('m');
|
||||
// 商品销量前十
|
||||
$return['data'] = Db::connect('shop')->table('eb_store_product')
|
||||
->alias('a')
|
||||
@ -891,6 +891,7 @@ class Statistics extends BaseController
|
||||
->group('a.product_id')->sum('c.total_num');
|
||||
})
|
||||
->where($where)
|
||||
->whereMonth('b.create_time', date('Y-M'))
|
||||
->limit(10)
|
||||
->group('a.product_id')
|
||||
->order('value desc')
|
||||
|
Loading…
x
Reference in New Issue
Block a user