|
|
@ -44,7 +44,7 @@ public class SysMemTreeController {
|
|
|
|
private SysRefUserPositionRepository refUserPositionRDao;
|
|
|
|
private SysRefUserPositionRepository refUserPositionRDao;
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* 通过部门主键获取岗位树,-1为根节点
|
|
|
|
* 根据父节点ID 获取树列表
|
|
|
|
* @return 处理结果
|
|
|
|
* @return 处理结果
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@GetMapping(value="/position/root")
|
|
|
|
@GetMapping(value="/position/root")
|
|
|
@ -63,6 +63,11 @@ public class SysMemTreeController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 根据用户ID 获取用户组织树
|
|
|
|
|
|
|
|
* @param userId
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
@GetMapping(value="/position/userId")
|
|
|
|
@GetMapping(value="/position/userId")
|
|
|
|
@ApiOperation(value="查询岗位树",notes="通过部门主键获取岗位树,-1为根节点")
|
|
|
|
@ApiOperation(value="查询岗位树",notes="通过部门主键获取岗位树,-1为根节点")
|
|
|
|
public ResultBean listSysPositionParentId(Long userId) {
|
|
|
|
public ResultBean listSysPositionParentId(Long userId) {
|
|
|
@ -81,6 +86,11 @@ public class SysMemTreeController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 分装树
|
|
|
|
|
|
|
|
* @param ids
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
@GetMapping(value="/position/ids")
|
|
|
|
@GetMapping(value="/position/ids")
|
|
|
|
@ApiOperation(value="查询岗位树",notes="通过部门主键获取岗位树,-1为根节点")
|
|
|
|
@ApiOperation(value="查询岗位树",notes="通过部门主键获取岗位树,-1为根节点")
|
|
|
|
public ResultBean listSysPositionParentId(Long[] ids) {
|
|
|
|
public ResultBean listSysPositionParentId(Long[] ids) {
|
|
|
@ -98,6 +108,11 @@ public class SysMemTreeController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 获取指定ID 节点的树 , 自动补充跟节点
|
|
|
|
|
|
|
|
* @param id
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
@GetMapping(value="/position/id")
|
|
|
|
@GetMapping(value="/position/id")
|
|
|
|
@ApiOperation(value="查询岗位树",notes="通过部门主键获取岗位树,-1为根节点")
|
|
|
|
@ApiOperation(value="查询岗位树",notes="通过部门主键获取岗位树,-1为根节点")
|
|
|
|
public ResultBean listSysPositionById(Long id) {
|
|
|
|
public ResultBean listSysPositionById(Long id) {
|
|
|
@ -115,6 +130,11 @@ public class SysMemTreeController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* 获取字节点所有的ID
|
|
|
|
|
|
|
|
* @param id
|
|
|
|
|
|
|
|
* @return
|
|
|
|
|
|
|
|
*/
|
|
|
|
@GetMapping(value="/position/child")
|
|
|
|
@GetMapping(value="/position/child")
|
|
|
|
@ApiOperation(value="查询岗位树",notes="通过部门主键获取岗位树,-1为根节点")
|
|
|
|
@ApiOperation(value="查询岗位树",notes="通过部门主键获取岗位树,-1为根节点")
|
|
|
|
public ResultBean listSysPositionChild(Long id) {
|
|
|
|
public ResultBean listSysPositionChild(Long id) {
|
|
|
|