组织人员树

This commit is contained in:
sxu 2024-11-01 15:44:10 +08:00
parent a8adc42f4b
commit d7dc110807
2 changed files with 5 additions and 21 deletions

View File

@ -164,23 +164,12 @@ public interface RemoteUserService {
/**
* 查询部门人员树列表
*
* @param dept 部门信息
* @param sysUser 部门信息
* @param source 请求来源
* @return 部门人员树列表或失败消息
*/
@GetMapping("/user/deptUserTree")
public AjaxResult deptUserTree(SysDept dept, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
/**
* 根据角色查询部门人员树列表
*
* @param dept 部门信息
* @param roleIds 角色列表
* @param source 请求来源
* @return 部门人员树列表或失败消息
*/
// @GetMapping("/user/deptUserTreeInRoleIds")
// public AjaxResult deptUserTreeInRoleIds(SysDept dept, List<Long> roleIds, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
@PostMapping("/user/deptUserTree")
public AjaxResult deptUserTree(SysUser sysUser, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
/**
* 修改用户审批状态

View File

@ -125,15 +125,10 @@ public class RemoteUserFallbackFactory implements FallbackFactory<RemoteUserServ
}
@Override
public AjaxResult deptUserTree(SysDept dept, String source) {
return AjaxResult.error("获取部门人员树列表:" + throwable.getMessage());
public AjaxResult deptUserTree(SysUser sysUser, String source) {
return AjaxResult.error("查询部门人员树列表:" + throwable.getMessage());
}
// @Override
// public AjaxResult deptUserTreeInRoleIds(SysDept dept, List<Long> roleIds, String source) {
// return AjaxResult.error("根据角色列表获取部门人员树列表:" + throwable.getMessage());
// }
@Override
public AjaxResult approvalStatus(SysUser user, String source) {
return AjaxResult.error("修改用户审批状态失败:" + throwable.getMessage());