OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2021-12-10 e8dd85537ec9060133956629019c429ffb22f8c0
src/main/resources/mybatis/query-template/issue-template.xml
@@ -15,6 +15,7 @@
        issue.complete_date as completeDate,
        issue.issue_number as issueNumber,
        issue.register_date as registerDate,
        issue.is_api as isApi,
        SUBSTRING(issue.modify_date, 1, 19) as modifyDate,
        project.id as projectId,
        project.name as projectName,
@@ -101,6 +102,10 @@
        <if test="endCompleteDate != null and !endCompleteDate.equals('')">
            ANd issue.complete_date <![CDATA[ <= ]]> #{endCompleteDate}
        </if>
        <if test="hideIssue != null and hideIssue == true">
            AND issue_status.issue_status_type != 'CLOSE'
        </if>
        <choose>
@@ -192,7 +197,6 @@
            </when>
        </choose>
        AND issue.parent_issue_id IS NULL
        AND issue_status.issue_status_type != 'CLOSE'
        AND issue.reverse_index <![CDATA[ < ]]> 0
        AND workspace.id = #{workspaceId}
        GROUP BY issue.id
@@ -248,7 +252,7 @@
        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('') ">
        <if test="keyWord != null and !keyWord.equals('') and myDepartmentIds.size != 0">
            AND issue.title like CONCAT('%',#{keyWord},'%')
            OR issue.description like CONCAT('%',#{keyWord},'%')
            OR issue.start_date like CONCAT('%',#{keyWord},'%')
@@ -299,6 +303,10 @@
        <if test="endCompleteDate != null and !endCompleteDate.equals('')">
            ANd issue.complete_date <![CDATA[ <= ]]> #{endCompleteDate}
        </if>
        <if test="hideIssue != null and hideIssue == true">
            AND issue_status.issue_status_type != 'CLOSE'
        </if>
        <choose>
@@ -384,7 +392,6 @@
            </when>
        </choose>
        AND issue.parent_issue_id IS NULL
        AND issue_status.issue_status_type != 'CLOSE'
        AND issue.reverse_index <![CDATA[ < ]]> 0
        AND workspace.id = #{workspaceId}
        GROUP BY issue.id
@@ -535,7 +542,6 @@
        LEFT OUTER JOIN issue_status iss ON iss.id = issue.issue_status_id
        WHERE 1=1
        AND issue.parent_issue_id IS NULL
        AND iss.issue_status_type != 'CLOSE'
        <if test="title != null and !title.equals('') ">
            AND issue.title like CONCAT('%',#{title},'%')
        </if>
@@ -570,6 +576,10 @@
        <if test="endCompleteDate != null and !endCompleteDate.equals('')">
            ANd issue.complete_date <![CDATA[ <= ]]> #{endCompleteDate}
        </if>
        <if test="hideIssue != null and hideIssue == true">
            AND iss.issue_status_type != 'CLOSE'
        </if>
        <choose>
@@ -661,7 +671,6 @@
        LEFT OUTER JOIN issue_status iss ON iss.id = issue.issue_status_id
        WHERE 1=1
        AND issue.parent_issue_id IS NULL
        AND iss.issue_status_type != 'CLOSE'
        <if test="title != null and !title.equals('') ">
            AND issue.title like CONCAT('%',#{title},'%')
        </if>
@@ -698,6 +707,10 @@
            ANd issue.complete_date <![CDATA[ <= ]]> #{endCompleteDate}
        </if>
        <if test="hideIssue != null and hideIssue == true">
            AND iss.issue_status_type != 'CLOSE'
        </if>
        <choose>
            <when test="myDepartmentIds.size != 0">
                AND isd.department_id IN
@@ -705,6 +718,9 @@
                    #{item}
                </foreach>
            </when>
            <otherwise>
                AND 1 != 1
            </otherwise>
        </choose>
        <choose>