查询部门列表(排除子节点)
@GetMapping("/list/excludeChild/{deptId}")
public AjaxResult excludeChild(@PathVariable(value = "deptId",required = false) Long deptId){
List<SysDept> depts = deptService.selectDeptList(new SysDept());
Iterator<SysDept> it = depts.iterator(