...
|
...
|
@@ -784,7 +784,8 @@ class Index extends Api |
|
|
->where($map)
|
|
|
// ->page(1, 10)
|
|
|
->group('s.product_id')
|
|
|
->field('p.name')
|
|
|
// ->field('p.name')
|
|
|
->field("count(*) as count,s.product_id")
|
|
|
// ->fetchSql()
|
|
|
// ->order('count(s.product_id) desc')
|
|
|
->select();
|
...
|
...
|
|