| | |
| | | } |
| | | |
| | | @GetMapping("/searchUser") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(name = "account", value = "账号名", paramType = "query", dataType = "string"), |
| | | @ApiImplicitParam(name = "realName", value = "姓名", paramType = "query", dataType = "string") |
| | | }) |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "搜索用户", notes = "传入account和realName") |
| | | @ApiOperation(value = "搜索用户", notes = "传入name") |
| | | @PreAuth(RoleConstant.HAS_ROLE_ADMIN) |
| | | public R<List<UserVO>> searchUser(@ApiIgnore User user, Query query, Long deptId, BladeUser bladeUser) { |
| | | IPage<User> pages = userService.selectUserPage(Condition.getPage(query), user, deptId, (bladeUser.getTenantId().equals(BladeConstant.ADMIN_TENANT_ID) ? StringPool.EMPTY : bladeUser.getTenantId())); |
| | | return R.data(UserWrapper.build().listVO(pages.getRecords())); |
| | | } |
| | | |
| | | @GetMapping("/searchUserByDistrictId") |
| | | @ApiOperationSupport(order = 3) |
| | | @ApiOperation(value = "通过小区Id搜索用户", notes = "传入districtId") |
| | | // @PreAuth(RoleConstant.HAS_ROLE_ADMIN) |
| | | public R<List<UserVO>> searchUserByDistrictId(String districtId) { |
| | | List<User> resutl = userService.searchUserByDistrictId(districtId); |
| | | return R.data(UserWrapper.build().listVO(resutl)); |
| | | } |
| | | |
| | | /** |
| | | * 自定义用户列表 |
| | | */ |