fecmall获取某个分类下的个数, 代码如下:
function getCategoryCount($categoryId)
{
$categoryPrimaryKey = Yii::$service->category->getPrimaryKey();
$filter =[
'where' => [
[$categoryPrimaryKey => $categoryId],
],
];
return Yii::$service->category->collCount($filter);
}