|
@@ -63,17 +63,29 @@ public class SysUserController extends BaseController
|
|
|
return getDataTable(list);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取用户列表(获取本部门及以下人员)
|
|
|
+ */
|
|
|
+ @GetMapping("/subordinateList")
|
|
|
+ public TableDataInfo subordinateList(SysUser user)
|
|
|
+ {
|
|
|
+ startPage();
|
|
|
+ SysUser users = SecurityUtils.getLoginUser().getUser();
|
|
|
+ user.setDeptId(users.getDeptId());
|
|
|
+ List<SysUser> list = userService.selectUserList(user);
|
|
|
+ return getDataTable(list);
|
|
|
+ }
|
|
|
+
|
|
|
/***
|
|
|
- * 获取没有分配部门的人员
|
|
|
+ * 获取没有分配部门的人员(只能通过手机号查询)
|
|
|
* @param user
|
|
|
* @return
|
|
|
*/
|
|
|
- @GetMapping("/allocationList")
|
|
|
- public TableDataInfo allocationList(SysUser user)
|
|
|
+ @GetMapping("/allocationOne")
|
|
|
+ public AjaxResult allocationOne(String phonenumber)
|
|
|
{
|
|
|
- startPage();
|
|
|
- List<SysUser> list = userService.allocationList(user);
|
|
|
- return getDataTable(list);
|
|
|
+ return userService.allocationOne(phonenumber);
|
|
|
}
|
|
|
|
|
|
/***
|
|
@@ -337,4 +349,15 @@ public class SysUserController extends BaseController
|
|
|
{
|
|
|
return success(deptService.selectDeptTreeList(dept));
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 获取当前账号部门树列表
|
|
|
+ */
|
|
|
+ @GetMapping("/deptTreeNow")
|
|
|
+ public AjaxResult deptTreeNow()
|
|
|
+ {
|
|
|
+ SysUser user = SecurityUtils.getLoginUser().getUser();
|
|
|
+ return success(deptService.selectDeptTreeList(user.getDept()));
|
|
|
+ }
|
|
|
+
|
|
|
}
|