| | |
| | | |
| | | @RequestMapping(value = "/listMgtDeptStaff", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取部门员工列表") |
| | | public R<List<MgtDeptStaffListVo>> listMgtDeptStaff() { |
| | | public R<List<MgtDeptStaffListVo>> listMgtDeptStaff(@RequestBody String name) { |
| | | // 获取当前登陆人的可视权限 |
| | | SysUser sysUser = SecurityUtils.getSysUser(); |
| | | // 如果当前登陆人权限是查看部门数据 |
| | |
| | | } |
| | | } |
| | | } |
| | | List<MgtDeptStaffListVo> mgtDeptStaffListVoList= sysStaffService.listMgtDeptStaff(deptId,userId); |
| | | List<MgtDeptStaffListVo> mgtDeptStaffListVoList= sysStaffService.listMgtDeptStaff(deptId,userId, name); |
| | | return R.ok(mgtDeptStaffListVoList); |
| | | } |
| | | |
| | |
| | | @RequestMapping(value = "/listDeptStaff", method = RequestMethod.POST) |
| | | @ApiOperation(value = "获取所有部门员工列表") |
| | | public R<List<MgtDeptStaffListVo>> listDeptStaff() { |
| | | List<MgtDeptStaffListVo> mgtDeptStaffListVoList= sysStaffService.listMgtDeptStaff(null,null); |
| | | List<MgtDeptStaffListVo> mgtDeptStaffListVoList= sysStaffService.listMgtDeptStaff(null,null, null); |
| | | return R.ok(mgtDeptStaffListVoList); |
| | | } |
| | | |