$sql = "select t1.*,t2.cat_name as catname from goods as t1,category as t2 where t1.cat_id = t2.cat_name;";
$result = $model -> query($sql);
$count = $model -> count();
链表查询之后的集 无法用count统计数量 求解。。