이슈타입 리스트 하위 프로젝트꺼까지 다 보이도록 수정
| | |
| | | public List<IssueTypeVo> findIssueType(Map<String, Object> resJsonData, |
| | | IssueTypeCondition condition, Pageable pageable) { |
| | | |
| | | List<Long> downProjectIds = Lists.newArrayList(); |
| | | |
| | | condition.setPage(pageable.getPageNumber() * pageable.getPageSize()); |
| | | condition.setPageSize(pageable.getPageSize()); |
| | | condition.setWorkspaceId(this.userService.getUser(this.webAppUtil.getLoginId()).getLastWorkspaceId()); |
| | |
| | | |
| | | private String isApi; |
| | | |
| | | private List<Long> projectIds = Lists.newArrayList(); |
| | | private List<Long> downProjectIds = Lists.newArrayList(); |
| | | |
| | | public IssueTypeCondition(){} |
| | | |
| | |
| | | this.endDate = endDate; |
| | | } |
| | | |
| | | public List<Long> getProjectIds() { |
| | | return projectIds; |
| | | public List<Long> getDownProjectIds() { |
| | | return downProjectIds; |
| | | } |
| | | |
| | | public void setProjectIds(List<Long> projectIds) { |
| | | this.projectIds = projectIds; |
| | | public void setDownProjectIds(List<Long> downProjectIds) { |
| | | this.downProjectIds = downProjectIds; |
| | | } |
| | | |
| | | public String getIsApi() { |
| | |
| | | <if test="projectId != '' and projectId != null"> |
| | | AND it.project_id like CONCAT('%',#{projectId},'%') |
| | | </if> |
| | | <choose> |
| | | <when test="downProjectIds != null and downProjectIds.size != 0"> |
| | | OR it.project_id IN |
| | | <foreach collection="downProjectIds" item="item" index="index" separator="," open="(" close=")"> |
| | | #{item} |
| | | </foreach> |
| | | </when> |
| | | </choose> |
| | | <if test="useProject != '' and useProject != null and useProject == true"> |
| | | AND it.project_id IS NOT NULL |
| | | </if> |