| | |
| | | @GetMapping("/listPage") |
| | | @ApiOperation("客户(私海)列表") |
| | | public R listPage(CustomerPrivatePoolDto customerPrivatePoolDto, Page<CustomerPrivatePoolDto> page){ |
| | | //查询当前用户的客户信息 |
| | | customerPrivatePoolDto.setBoundId(SecurityUtils.getUserId()); |
| | | // 管理员可查看全部客户,不受归属人限制 |
| | | if (!SecurityUtils.isAdmin(SecurityUtils.getUserId())) { |
| | | customerPrivatePoolDto.setBoundId(SecurityUtils.getUserId()); |
| | | } |
| | | IPage<CustomerPrivatePoolDto> listPage = customerPrivatePoolService.listPage(page, customerPrivatePoolDto); |
| | | return R.ok(listPage); |
| | | } |