OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2021-12-10 51365e66857e4b7a1d783b0309e20e855e393ae5
src/main/java/kr/wisestone/owl/service/impl/UserWorkspaceServiceImpl.java
@@ -79,7 +79,7 @@
    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());
@@ -213,7 +213,13 @@
    @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);
    }