mitao
2025-01-17 afa0dbb4f54e7244835dd67ec33c3e545f122f71
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 ListMgtDeptStaffDto listMgtDeptStaffDto) {
        // 获取当前登陆人的可视权限
        SysUser sysUser = SecurityUtils.getSysUser();
        // 如果当前登陆人权限是查看部门数据
@@ -77,11 +77,20 @@
                }
            }
        }
        List<MgtDeptStaffListVo> mgtDeptStaffListVoList= sysStaffService.listMgtDeptStaff(deptId,userId);
        List<MgtDeptStaffListVo> mgtDeptStaffListVoList= sysStaffService.listMgtDeptStaff(deptId,userId, listMgtDeptStaffDto.getName());
        return R.ok(mgtDeptStaffListVoList);
    }
    @RequestMapping(value = "/listDeptStaff", method = RequestMethod.POST)
    @ApiOperation(value = "获取所有部门员工列表")
    public R<List<MgtDeptStaffListVo>> listDeptStaff() {
        List<MgtDeptStaffListVo> mgtDeptStaffListVoList= sysStaffService.listMgtDeptStaff(null,null, null);
        return R.ok(mgtDeptStaffListVoList);
    }
    @RequestMapping(value = "/listMgtDeptStaffByPermission", method = RequestMethod.POST)
    @ApiOperation(value = "通过权限获取部门员工列表")
    public R<List<MgtDeptStaffListVo>> listMgtDeptStaffByPermission() {