public function changStatus($id, $status = -1)
 {
     //首先根据id值查找他的边界
     $sql = "select lft,rght from shop_goods_category WHERE id={$id}";
     $num = $this->query($sql);
     //在根据它的边界查看在她边界内的所有id;
     $sql = "select id from shop_goods_category WHERE lft>=" . $num[0]['lft'] . " AND rght<=" . $num[0]['rght'];
     //得到所有的id
     $rows = $this->query($sql);
     $ids = array_column($rows, 'id');
     //调用父类的方法执行
     return parent::changStatus($ids, $status);
 }