--查出第一级SELECT * FROM `sys_dept` where parent_id='ZYY-8'
update sys_dept set ancestors=0 where parent_id='ZYY-8'