puzhibing
2024-03-18 65ca63cc3d36f23d285a7d944fcc0d6bac92430d
ruoyi-modules/ruoyi-system/src/main/java/com/ruoyi/system/controller/management/MgtStaffController.java
@@ -53,7 +53,7 @@
    @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();
        // 如果当前登陆人权限是查看部门数据
@@ -77,7 +77,7 @@
                }
            }
        }
        List<MgtDeptStaffListVo> mgtDeptStaffListVoList= sysStaffService.listMgtDeptStaff(deptId,userId);
        List<MgtDeptStaffListVo> mgtDeptStaffListVoList= sysStaffService.listMgtDeptStaff(deptId,userId, name);
        return R.ok(mgtDeptStaffListVoList);
    }
@@ -85,7 +85,7 @@
    @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);
    }