| | |
| | | Long delayIssue = 0L; // 지연된 이슈 |
| | | Long completeIssue = 0L; // 완료된 이슈 |
| | | |
| | | widgetCondition.setLoginUserId(this.webAppUtil.getLoginId()); |
| | | widgetCondition.setWorkspaceId(this.userService.getUser(this.webAppUtil.getLoginId()).getLastWorkspaceId()); |
| | | User user = this.webAppUtil.getLoginUserObject(); |
| | | |
| | | if (widgetCondition.getProjectIds().size() > 0) { |
| | | SetMeAndDownProjectIds(widgetCondition.getProjectIds(), widgetCondition); |
| | | |
| | | remainIssue = this.widgetMapper.countRemainIssue(widgetCondition); // 잔여 이슈 |
| | | delayIssue = this.widgetMapper.countTodayDelayIssue(widgetCondition); // 지연된 이슈 |
| | | assigneeIssue = this.widgetMapper.countAssigneeIssue(widgetCondition); // 할당된 이슈 |
| | | registerIssue = this.widgetMapper.countTodayRegisterIssue(widgetCondition); // 등록한 이슈 |
| | | noAssigneeIssue = this.widgetMapper.countNoAssigneeIssue(widgetCondition); // 미할당 이슈 |
| | | completeIssue = this.widgetMapper.countCompleteIssue(widgetCondition); // 완료된 이슈 |
| | | if (this.userWorkspaceService.checkWorkspaceManager(user)) { |
| | | remainIssue = this.widgetMapper.countRemainIssue(widgetCondition); // 잔여 이슈 |
| | | delayIssue = this.widgetMapper.countTodayDelayIssue(widgetCondition); // 지연된 이슈 |
| | | assigneeIssue = this.widgetMapper.countAssigneeIssue(widgetCondition); // 할당된 이슈 |
| | | registerIssue = this.widgetMapper.countTodayRegisterIssue(widgetCondition); // 등록한 이슈 |
| | | noAssigneeIssue = this.widgetMapper.countNoAssigneeIssue(widgetCondition); // 미할당 이슈 |
| | | completeIssue = this.widgetMapper.countCompleteIssue(widgetCondition); // 완료된 이슈 |
| | | } else { |
| | | SetMyDepartmentId(widgetCondition); |
| | | remainIssue = this.widgetMapper.countRemainIssueByDepartment(widgetCondition); // 잔여 이슈 |
| | | delayIssue = this.widgetMapper.countTodayDelayIssueByDepartment(widgetCondition); // 지연된 이슈 |
| | | assigneeIssue = this.widgetMapper.countAssigneeIssueByDepartment(widgetCondition); // 할당된 이슈 |
| | | registerIssue = this.widgetMapper.countTodayRegisterIssueByDepartment(widgetCondition); // 등록한 이슈 |
| | | noAssigneeIssue = this.widgetMapper.countNoAssigneeIssueByDepartment(widgetCondition); // 미할당 이슈 |
| | | completeIssue = this.widgetMapper.countCompleteIssueByDepartment(widgetCondition); // 완료된 이슈 |
| | | } |
| | | } |
| | | |
| | | Map<String, Object> results = new HashMap<>(); |
| | |
| | | totalCount = this.widgetMapper.countMyAssigneeIssue(widgetCondition); |
| | | } |
| | | |
| | | |
| | | // 0.156 - 0.166 |
| | | int totalPage = (int) Math.ceil((totalCount - 1) / pageable.getPageSize()) + 1; |
| | | |
| | |
| | | // 위젯 검색 조건을 만들고 전체 프로젝트 정보를 리턴한다. |
| | | Map<String, Object> results = this.makeWidgetConditionAllProject(widgetCondition, getWidgetCondition); |
| | | |
| | | widgetCondition.setLoginUserId(this.webAppUtil.getLoginId()); |
| | | widgetCondition.setWorkspaceId(this.userService.getUser(this.webAppUtil.getLoginId()).getLastWorkspaceId()); |
| | | User user = this.webAppUtil.getLoginUserObject(); |
| | | |
| | | if (widgetCondition.getProjectId() != null) { |
| | | SetMeAndDownProjectIds(widgetCondition.getProjectIds(), widgetCondition); |
| | | List<Map<String, Object>> projectMemberIssues = this.widgetMapper.findProjectMemberIssue(widgetCondition); |
| | | List<Map<String, Object>> projectMemberIssues = Lists.newArrayList(); |
| | | if (this.userWorkspaceService.checkWorkspaceManager(user)) { |
| | | projectMemberIssues = this.widgetMapper.findProjectMemberIssue(widgetCondition); |
| | | } else { |
| | | projectMemberIssues = this.widgetMapper.findProjectMemberIssueByDepartment(widgetCondition); |
| | | } |
| | | |
| | | for (Map<String, Object> projectMemberIssue : projectMemberIssues) { |
| | | //String departmentName = MapUtil.getString(projectMemberIssue, "departmentName"); |
| | |
| | | List<Map<String, Object>> severityIssues = Lists.newArrayList(); |
| | | Long totalCount = 0L; |
| | | |
| | | widgetCondition.setLoginUserId(this.webAppUtil.getLoginId()); |
| | | widgetCondition.setWorkspaceId(this.userService.getUser(this.webAppUtil.getLoginId()).getLastWorkspaceId()); |
| | | User user = this.webAppUtil.getLoginUserObject(); |
| | | |
| | | if (widgetCondition.getProjectIds().size() > 0) { |
| | | SetMeAndDownProjectIds(widgetCondition.getProjectIds(), widgetCondition); |
| | | |
| | | severityCounts = this.widgetMapper.countSeverityIssue(widgetCondition); |
| | | severityIssues = this.widgetMapper.findSeverityIssues(widgetCondition); |
| | | totalCount = this.widgetMapper.countSearchIssue(widgetCondition); |
| | | if (this.userWorkspaceService.checkWorkspaceManager(user)) { |
| | | severityCounts = this.widgetMapper.countSeverityIssue(widgetCondition); |
| | | severityIssues = this.widgetMapper.findSeverityIssues(widgetCondition); |
| | | totalCount = this.widgetMapper.countSearchIssue(widgetCondition); |
| | | }else { |
| | | SetMyDepartmentId(widgetCondition); |
| | | severityCounts = this.widgetMapper.countSeverityIssueByDepartment(widgetCondition); |
| | | severityIssues = this.widgetMapper.findSeverityIssuesByDepartment(widgetCondition); |
| | | totalCount = this.widgetMapper.countSearchIssueByDepartment(widgetCondition); |
| | | } |
| | | } |
| | | |
| | | Long criticalIssueCount = 0L, majorIssueCount = 0L, minorIssueCount = 0L, trivialIssueCount = 0L; |
| | |
| | | // 나에게 할당된 이슈 정보를 엑셀로 다운로드 한다. |
| | | private ExportExcelVo downloadExcelMyAssigneeIssue() { |
| | | WidgetCondition widgetCondition = this.makeWidgetCondition(); |
| | | |
| | | /*widgetCondition.setLoginUserId(this.webAppUtil.getLoginId()); |
| | | widgetCondition.setWorkspaceId(this.userService.getUser(this.webAppUtil.getLoginId()).getLastWorkspaceId()); |
| | | User user = this.webAppUtil.getLoginUserObject();*/ |
| | | |
| | | // 나에게 할당된 이슈 |
| | | List<Map<String, Object>> assigneeIssues = Lists.newArrayList(); |
| | | if (widgetCondition.getProjectIds().size() > 0) { |
| | | //if (this.userWorkspaceService.checkWorkspaceManager(user)) { |
| | | assigneeIssues = this.widgetMapper.findMyAssigneeIssue(this.makeWidgetCondition()); |
| | | /*} else { |
| | | assigneeIssues = this.widgetMapper.findMyAssigneeIssueByDepartment(this.makeWidgetCondition()); |
| | | }*/ |
| | | } |
| | | |
| | | ExportExcelVo excelInfo = new ExportExcelVo(); |