| | |
| | | import kr.wisestone.owl.common.MessageAccessor; |
| | | import kr.wisestone.owl.constant.Constants; |
| | | import kr.wisestone.owl.constant.MsgConstants; |
| | | import kr.wisestone.owl.domain.IssueStatus; |
| | | import kr.wisestone.owl.domain.Project; |
| | | import kr.wisestone.owl.domain.ProjectClosure; |
| | | import kr.wisestone.owl.domain.UserDepartment; |
| | | import kr.wisestone.owl.domain.*; |
| | | import kr.wisestone.owl.domain.enumType.ProjectType; |
| | | import kr.wisestone.owl.exception.OwlRuntimeException; |
| | | import kr.wisestone.owl.mapper.IssueMapper; |
| | |
| | | @Override |
| | | @Transactional(readOnly = true) |
| | | public WidgetCondition makeWidgetCondition() { |
| | | User user = this.webAppUtil.getLoginUserObject(); |
| | | // 해당 워크스페이스에서 참여하고 있는 프로젝트 중 상태가 오픈인 프로젝트 |
| | | List<Map<String, Object>> projects = null; |
| | | if (this.userWorkspaceService.checkWorkspaceManager()) { |
| | | if (this.userWorkspaceService.checkWorkspaceManager(user)) { |
| | | projects = this.projectService.findByWorkspaceManagerAll(); |
| | | } else { |
| | | projects = this.projectService.findByWorkspaceIdAndIncludeProjectAll(Lists.newArrayList("02"), ProjectType.BTS_PROJECT.toString()); |
| | |
| | | public void findProjectProgress(Map<String, Object> resJsonData, WidgetCondition widgetCondition) { |
| | | List<Map<String, Object>> progressingProjectDetails = Lists.newArrayList(); |
| | | |
| | | User user = this.webAppUtil.getLoginUserObject(); |
| | | |
| | | if (widgetCondition.getProjectIds().size() > 0) { |
| | | SetMeAndDownProjectIds(widgetCondition.getProjectIds(), widgetCondition); |
| | | if (this.userWorkspaceService.checkWorkspaceManager()) { |
| | | if (this.userWorkspaceService.checkWorkspaceManager(user)) { |
| | | progressingProjectDetails = this.widgetMapper.findProjectProgressAll(widgetCondition); |
| | | } else { |
| | | progressingProjectDetails = this.widgetMapper.findProjectProgress(widgetCondition); |