| | |
| | | delayIssue = this.widgetMapper.countTodayDelayIssueByDepartment(widgetCondition); // 지연된 이슈 |
| | | assigneeIssue = this.widgetMapper.countAssigneeIssueByDepartment(widgetCondition); // 할당된 이슈 |
| | | registerIssue = this.widgetMapper.countTodayRegisterIssueByDepartment(widgetCondition); // 등록한 이슈 |
| | | noAssigneeIssue = this.widgetMapper.countNoAssigneeIssueByDepartment(widgetCondition); // 미할당 이슈 |
| | | //noAssigneeIssue = this.widgetMapper.countNoAssigneeIssueByDepartment(widgetCondition); // 일반 유저는 미할당 이슈 0개로 보이게 |
| | | completeIssue = this.widgetMapper.countCompleteIssueByDepartment(widgetCondition); // 완료된 이슈 |
| | | } |
| | | } |
| | |
| | | } |
| | | |
| | | List<Map<String, Object>> results = Lists.newArrayList(); |
| | | User user = this.webAppUtil.getLoginUserObject(); |
| | | |
| | | if (widgetCondition.getProjectIds().size() > 0) { |
| | | SetMeAndDownProjectIds(widgetCondition.getProjectIds(), widgetCondition); |
| | | results = this.widgetMapper.findByStandIssueStatus(widgetCondition); |
| | | if (this.userWorkspaceService.checkWorkspaceManager(user)) { |
| | | results = this.widgetMapper.findByStandIssueStatus(widgetCondition); |
| | | }else { |
| | | results = this.widgetMapper.findByStandIssueStatusOfDepartment(widgetCondition); |
| | | } |
| | | } |
| | | |
| | | for (Map<String, Object> result : results) { |
| | |
| | | public void findByStandIssueType(Map<String, Object> resJsonData, WidgetCondition widgetCondition, Boolean getWidgetCondition) { |
| | | // 위젯 검색 조건을 얻어야 할 상황일 때 - 화면에서 탭을 눌러 데이터를 재요청했을 때 위젯 검색 조건을 만들고 전체 프로젝트 정보를 리턴한다. |
| | | Map<String, Object> results = this.makeWidgetConditionAllProject(widgetCondition, getWidgetCondition); |
| | | |
| | | User user = this.webAppUtil.getLoginUserObject(); |
| | | if (widgetCondition.getProjectId() != null) { |
| | | SetMeAndDownProjectIds(widgetCondition.getProjectIds(), widgetCondition); |
| | | List<Map<String, Object>> issueTypeIssues = this.widgetMapper.findByStandIssueType(widgetCondition); |
| | | List<Map<String, Object>> issueTypeIssues = Lists.newArrayList(); |
| | | if (this.userWorkspaceService.checkWorkspaceManager(user)) { |
| | | issueTypeIssues = this.widgetMapper.findByStandIssueType(widgetCondition); |
| | | } else { |
| | | issueTypeIssues = this.widgetMapper.findByStandIssueTypeOfDepartment(widgetCondition); |
| | | } |
| | | // 이슈 정보 |
| | | results.put("issues", issueTypeIssues); |
| | | } else { |