OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2021-12-10 3bdf2a1f2757de8ab6570508385d89124243943c
src/main/resources/mybatis/query-template/issue-template.xml
@@ -104,6 +104,10 @@
            ANd issue.complete_date <![CDATA[ <= ]]> #{endCompleteDate}
        </if>
        <if test="hideIssue != null and hideIssue == true">
            AND issue_status.issue_status_type != 'CLOSE'
        </if>
        <choose>
            <when test="projectIds.size != 0">
                AND project.id IN
@@ -193,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
@@ -302,6 +305,10 @@
            ANd issue.complete_date <![CDATA[ <= ]]> #{endCompleteDate}
        </if>
        <if test="hideIssue != null and hideIssue == true">
            AND issue_status.issue_status_type != 'CLOSE'
        </if>
        <choose>
            <when test="myDepartmentIds.size != 0">
                AND isd.department_id IN
@@ -385,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
@@ -536,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>
@@ -571,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>
@@ -662,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>
@@ -699,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
@@ -706,6 +718,9 @@
                    #{item}
                </foreach>
            </when>
            <otherwise>
                AND 1 != 1
            </otherwise>
        </choose>
        <choose>