组织人员树

This commit is contained in:
sxu 2024-11-01 11:29:42 +08:00
parent db826998a0
commit 84a4e6fc7d
3 changed files with 7 additions and 7 deletions

View File

@ -179,8 +179,8 @@ public interface RemoteUserService {
* @param source 请求来源 * @param source 请求来源
* @return 部门人员树列表或失败消息 * @return 部门人员树列表或失败消息
*/ */
@GetMapping("/user/deptUserTree") // @GetMapping("/user/deptUserTreeInRoleIds")
public AjaxResult deptUserTree(SysDept dept, List<Long> roleIds, @RequestHeader(SecurityConstants.FROM_SOURCE) String source); // public AjaxResult deptUserTreeInRoleIds(SysDept dept, List<Long> roleIds, @RequestHeader(SecurityConstants.FROM_SOURCE) String source);
/** /**
* 修改用户审批状态 * 修改用户审批状态

View File

@ -129,10 +129,10 @@ public class RemoteUserFallbackFactory implements FallbackFactory<RemoteUserServ
return AjaxResult.error("获取部门人员树列表:" + throwable.getMessage()); return AjaxResult.error("获取部门人员树列表:" + throwable.getMessage());
} }
@Override // @Override
public AjaxResult deptUserTree(SysDept dept, List<Long> roleIds, String source) { // public AjaxResult deptUserTreeInRoleIds(SysDept dept, List<Long> roleIds, String source) {
return AjaxResult.error("根据角色列表获取部门人员树列表:" + throwable.getMessage()); // return AjaxResult.error("根据角色列表获取部门人员树列表:" + throwable.getMessage());
} // }
@Override @Override
public AjaxResult approvalStatus(SysUser user, String source) { public AjaxResult approvalStatus(SysUser user, String source) {

View File

@ -468,7 +468,7 @@ public class SysUserController extends BaseController {
*/ */
@RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:user:list")) @RequiresPermissionsOrInnerAuth(innerAuth = @InnerAuth, requiresPermissions = @RequiresPermissions("system:user:list"))
@GetMapping("/deptUserTreeInRoleIds") @GetMapping("/deptUserTreeInRoleIds")
public AjaxResult deptUserTree(SysDept dept, List<Long> roleIds) { public AjaxResult deptUserTreeInRoleIds(SysDept dept, List<Long> roleIds) {
try { try {
return success(deptService.selectDeptUserTree(dept, roleIds)); return success(deptService.selectDeptUserTree(dept, roleIds));
} catch (Exception e) { } catch (Exception e) {