iwebshop根据分类统计分类统计产品数量
//根据分类统计分类统计产品数量
'getGoodsClassNum' => array(
'query' => array(
'name' => 'category_extend as ce',
'join' => 'left join goods as go on ce.goods_id = go.id',
'where' => 'ce.category_id = #category_id# and go.is_del = 0',
'fields' => 'count(ce.goods_id) as num',
'type' => 'row'
)
),