OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2021-12-24 dbcc95475a37625a8ba03ee8037df7e0871f7a9d
이슈타입 리스트 하위 프로젝트꺼까지 다 보이도록 수정
3개 파일 변경됨
20 ■■■■ 파일 변경됨
src/main/java/kr/wisestone/owl/service/impl/IssueTypeServiceImpl.java 2 ●●●●● 패치 | 보기 | raw | blame | 히스토리
src/main/java/kr/wisestone/owl/web/condition/IssueTypeCondition.java 10 ●●●● 패치 | 보기 | raw | blame | 히스토리
src/main/resources/mybatis/query-template/issueType-template.xml 8 ●●●●● 패치 | 보기 | raw | blame | 히스토리
src/main/java/kr/wisestone/owl/service/impl/IssueTypeServiceImpl.java
@@ -186,6 +186,8 @@
    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());
src/main/java/kr/wisestone/owl/web/condition/IssueTypeCondition.java
@@ -29,7 +29,7 @@
    private String isApi;
    private List<Long> projectIds = Lists.newArrayList();
    private List<Long> downProjectIds = Lists.newArrayList();
    public IssueTypeCondition(){}
@@ -145,12 +145,12 @@
        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() {
src/main/resources/mybatis/query-template/issueType-template.xml
@@ -20,6 +20,14 @@
        <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>