echo Db::table("ecs_category")
->fetchSql()
->where('parent_id',$tree_id)
->order('sort_order','cat_id')->select();
echo Db::table("ecs_category")
->fetchSql()
->where('parent_id',$tree_id)
->order('sort_order','cat_id')->select();
转载于:https://my.oschina.net/xuyaoxiang/blog/759860