deptTreeByPost
This commit is contained in:
parent
6f1315d73b
commit
10a7d86281
|
|
@ -180,6 +180,9 @@ public interface RemoteUserService {
|
|||
@GetMapping("/user/deptTree")
|
||||
public AjaxResult deptTree(SysDept dept, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
||||
|
||||
@PostMapping("/user/deptTreeByPost")
|
||||
public AjaxResult deptTreeByPost(@RequestBody SysDept sysDept, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
|
||||
|
||||
/**
|
||||
* 查询部门人员树列表
|
||||
*
|
||||
|
|
|
|||
|
|
@ -146,6 +146,11 @@ public class RemoteUserFallbackFactory implements FallbackFactory<RemoteUserServ
|
|||
return AjaxResult.error("获取部门权限下的部门树列表:" + throwable.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult deptTreeByPost(SysDept sysDept, String source) {
|
||||
return AjaxResult.error("获取部门权限下的部门树列表:" + throwable.getMessage());
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult deptUserTree(SysUser sysUser, String source) {
|
||||
return AjaxResult.error("查询部门人员树列表:" + throwable.getMessage());
|
||||
|
|
|
|||
|
|
@ -520,6 +520,16 @@ public class SysUserController extends BaseController {
|
|||
return error("系统异常,请联系管理员");
|
||||
}
|
||||
|
||||
@PostMapping("/deptTreeByPost")
|
||||
public AjaxResult deptTreeByPost(SysDept dept) {
|
||||
try {
|
||||
return success(deptService.selectDeptTreeList(dept));
|
||||
} catch (Exception e) {
|
||||
logger.error(e.toString(), e);
|
||||
}
|
||||
return error("系统异常,请联系管理员");
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询部门人员树列表
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in New Issue