新增 根据部门查询用户的无数据权限借口

This commit is contained in:
furongxin 2024-08-30 10:38:42 +08:00
parent ff4092e5b2
commit 05cfcc8c33

View File

@ -231,6 +231,18 @@ public class UserController {
return success(BeanUtils.toBean(user, UserRespVO.class));
}
@PostMapping("/getByDeptId-all")
@Operation(summary = "根据部门编号获得用户详情")
@Parameter(name = "deptId", description = "部门编号", required = true, example = "117")
@PreAuthorize("@ss.hasPermission('system:user:query')")
@DataPermission(enable = false)
public CommonResult<List<UserRespVO>> getListUserByDeptIdAll(@RequestParam("deptId") Long deptId) {
List<AdminUserDO> user = userService.getListUserByDeptId(deptId);
return success(BeanUtils.toBean(user, UserRespVO.class));
}
@GetMapping("/export")
@Operation(summary = "导出用户")
@PreAuthorize("@ss.hasPermission('system:user:export')")