|
@@ -454,5 +454,13 @@ public class SysDeptController extends BaseController {
|
|
return AjaxResult.success("查询成功",deptService.selectDeptListByDeptNames(deptName));
|
|
return AjaxResult.success("查询成功",deptService.selectDeptListByDeptNames(deptName));
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 根据用户名查询dept_id, parent_id, ancestors, dept_name
|
|
|
|
+ */
|
|
|
|
+ @ApiOperation(value = "根据用户名查询dept_id, parent_id, ancestors, dept_name", notes = "根据用户名查询dept_id, parent_id, ancestors, dept_name")
|
|
|
|
+ @GetMapping("/findDeptIdByUserName/{userName}")
|
|
|
|
+ public R findDeptIdByUserName(@PathVariable("userName") String userName) {
|
|
|
|
+ return R.ok(deptService.findDeptIdByUserName(userName));
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|