组织人员树

This commit is contained in:
sxu 2024-11-01 11:17:52 +08:00
parent f6ef65bdb9
commit db826998a0
2 changed files with 20 additions and 2 deletions

View File

@ -13,6 +13,8 @@ import com.bonus.system.api.domain.SysUser;
import com.bonus.system.api.factory.RemoteUserFallbackFactory; import com.bonus.system.api.factory.RemoteUserFallbackFactory;
import com.bonus.system.api.model.LoginUser; import com.bonus.system.api.model.LoginUser;
import java.util.List;
/** /**
* 用户服务 * 用户服务
* *
@ -160,7 +162,7 @@ public interface RemoteUserService {
public AjaxResult deptTree(SysDept dept, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); public AjaxResult deptTree(SysDept dept, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
/** /**
* 获取当前登录用户数据权限范围内的部门权限下的部门人员树列表 * 查询部门人员树列表
* *
* @param dept 部门信息 * @param dept 部门信息
* @param source 请求来源 * @param source 请求来源
@ -169,6 +171,17 @@ public interface RemoteUserService {
@GetMapping("/user/deptUserTree") @GetMapping("/user/deptUserTree")
public AjaxResult deptUserTree(SysDept dept, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); public AjaxResult deptUserTree(SysDept dept, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
/**
* 根据角色查询部门人员树列表
*
* @param dept 部门信息
* @param roleIds 角色列表
* @param source 请求来源
* @return 部门人员树列表或失败消息
*/
@GetMapping("/user/deptUserTree")
public AjaxResult deptUserTree(SysDept dept, List<Long> roleIds, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
/** /**
* 修改用户审批状态 * 修改用户审批状态
* *

View File

@ -126,7 +126,12 @@ public class RemoteUserFallbackFactory implements FallbackFactory<RemoteUserServ
@Override @Override
public AjaxResult deptUserTree(SysDept dept, String source) { public AjaxResult deptUserTree(SysDept dept, String source) {
return AjaxResult.error("获取部门权限下的部门人员树列表:" + throwable.getMessage()); return AjaxResult.error("获取部门人员树列表:" + throwable.getMessage());
}
@Override
public AjaxResult deptUserTree(SysDept dept, List<Long> roleIds, String source) {
return AjaxResult.error("根据角色列表获取部门人员树列表:" + throwable.getMessage());
} }
@Override @Override