| | |
| | | public List<UserWorkspaceVo> findUserWorkspace(Map<String, Object> resJsonData, |
| | | UserWorkspaceCondition condition, Pageable pageable) { |
| | | |
| | | UserWorkspace userWorkspace = this.findMyWorkspace(this.webAppUtil.getLoginId()); |
| | | UserWorkspace userWorkspace = this.findWorkspaceManager(this.webAppUtil.getLoginId()); |
| | | Workspace myWorkspace = userWorkspace.getWorkspace(); |
| | | condition.setPage(pageable.getPageNumber() * pageable.getPageSize()); |
| | | condition.setPageSize(pageable.getPageSize()); |
| | |
| | | @Override |
| | | @Transactional(readOnly = true) |
| | | public UserWorkspace findMyWorkspace(Long userId) { |
| | | //return this.userWorkspaceRepository.findByUserIdAndManagerYn(userId, true); |
| | | return this.userWorkspaceRepository.findByUserIdAndManagerYn(userId, true); |
| | | } |
| | | |
| | | // 워크스페이스 관리자 조회 |
| | | @Override |
| | | @Transactional(readOnly = true) |
| | | public UserWorkspace findWorkspaceManager(Long userId) { |
| | | return this.userWorkspaceRepository.findByUserId(userId); |
| | | } |
| | | |