- 일반 사용자 로그인시 이슈유형 메뉴 정상적으로 뜨도록 수정
- 이슈 메뉴 클릭시 프로젝트에 속해 있는 사용자는 모든 이슈 보도록 수정
| | |
| | | Long totalCount = 0L; |
| | | UserLevel userLevel = this.userLevelService.getUserLevel(user.getUserLevel().getId()); |
| | | |
| | | if (this.userWorkspaceService.checkWorkspaceManager(user) |
| | | || MngPermission.checkMngPermission(userLevel.getPermission(), MngPermission.USER_PERMISSION_MNG_ISSUE_PROJECT_ALL)) { |
| | | // if (this.userWorkspaceService.checkWorkspaceManager(user) |
| | | // || MngPermission.checkMngPermission(userLevel.getPermission(), MngPermission.USER_PERMISSION_MNG_ISSUE_PROJECT_ALL)) { |
| | | results = this.issueMapper.find(issueCondition); |
| | | totalCount = this.issueMapper.count(issueCondition); |
| | | } else{ |
| | | this.SetMyDepartmentId(issueCondition); |
| | | results = this.issueMapper.findByDepartment(issueCondition); |
| | | totalCount = this.issueMapper.countByDepartment(issueCondition); |
| | | } |
| | | // } |
| | | // } else{ |
| | | // this.SetMyDepartmentId(issueCondition); |
| | | // results = this.issueMapper.findByDepartment(issueCondition); |
| | | // totalCount = this.issueMapper.countByDepartment(issueCondition); |
| | | // } |
| | | |
| | | |
| | | // 튜닝 전 - 0.8, 0.9, 0.9, 0.9, 0.9 |
| | |
| | | LEFT OUTER JOIN (SELECT issue_id, COUNT(id) as issueCommentCount FROM issue_comment GROUP BY issue_id) |
| | | temp_issue_comment on (temp_issue_comment.issue_id = issue.id) |
| | | WHERE 1=1 |
| | | <if test="keyWord != null and !keyWord.equals('') and myDepartmentIds.size != 0"> |
| | | <if test="keyWord != null and !keyWord.equals('')"> |
| | | AND issue.title like CONCAT('%',#{keyWord},'%') |
| | | OR issue.description like CONCAT('%',#{keyWord},'%') |
| | | OR issue.start_date like CONCAT('%',#{keyWord},'%') |
| | |
| | | </if> |
| | | |
| | | <choose> |
| | | <when test="myDepartmentIds.size != 0"> |
| | | <when test="myDepartmentIds != null and myDepartmentIds.size != 0"> |
| | | AND isd.department_id IN |
| | | <foreach collection="myDepartmentIds" item="item" index="index" separator="," open="(" close=")"> |
| | | #{item} |
| | |
| | | </if> |
| | | |
| | | <choose> |
| | | <when test="myDepartmentIds.size != 0"> |
| | | <when test="myDepartmentIds != null and myDepartmentIds.size != 0"> |
| | | AND isd.department_id IN |
| | | <foreach collection="myDepartmentIds" item="item" index="index" separator="," open="(" close=")"> |
| | | #{item} |
| | |
| | | <link type="text/css" rel="stylesheet" href="custom_components/js-autocomplete-single/js-autocomplete-single.css"> |
| | | <link type="text/css" rel="stylesheet" href="custom_components/js-autocomplete-multi/js-autocomplete-multi.css"> |
| | | <link type="text/css" rel="stylesheet" href="custom_components/js-html-diff/js-html-diff.css"> |
| | | <link type="text/css" rel="stylesheet" href="assets/styles/main.css?version=0.9.0"> |
| | | <link type="text/css" rel="stylesheet" href="assets/styles/main.css?version=0.9.2"> |
| | | <link type="text/css" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Rubik:300,400,500"> |
| | | |
| | | <!-- google font --> |
| | |
| | | } |
| | | |
| | | var id = $rootScope.workProject.id === -1 ? null : $rootScope.workProject.id; |
| | | $scope.fn.findIssueList(id); |
| | | } |
| | | $rootScope.projects = datas; |
| | | $scope.fn.findIssueList(id); |
| | | } |
| | | |
| | | if ($rootScope.user.lastProjectId == null) { |
| | |
| | | |
| | | // 이슈 유형 목록 가져오기 |
| | | function findIssueList(projectId) { |
| | | |
| | | if ($rootScope.projects == null || $rootScope.projects.length <= 1) |
| | | return; |
| | | |
| | | // 이슈 타입 목록 검색 조건을 만든다. |
| | | var conditions = { |
| | | projectId : projectId > -1 ? projectId : null, |
| | |
| | | 'use strict'; |
| | | |
| | | require.config({ |
| | | urlArgs : "bust=v0.9.0", |
| | | urlArgs : "bust=v0.9.2", |
| | | paths : { |
| | | 'jquery' : '../bower_components/jquery/dist/jquery', |
| | | 'jquery-ui' : '../bower_components/jquery-ui/jquery-ui', |