OWL ITS + 탐지시스템(인터넷 진흥원)
src/main/resources/mybatis/query-template/issue-template.xml
@@ -105,7 +105,13 @@
            ANd issue.complete_date <![CDATA[ <= ]]> #{endCompleteDate}
        </if>
        <if test="hideIssue != null and hideIssue == true">
        <if test="combinationIssueNumber == null or combinationIssueNumber.equals('')">
            <if test="hideDownIssue != null and hideDownIssue == true">
                AND issue.parent_issue_id IS NULL
            </if>
        </if>
        <if test="hideCompleteIssue != null and hideCompleteIssue == true">
            AND issue_status.issue_status_type != 'CLOSE'
        </if>
@@ -206,9 +212,6 @@
                </foreach>
            </when>
        </choose>
        <if test="combinationIssueNumber == null or combinationIssueNumber.equals('')">
            AND issue.parent_issue_id IS NULL
        </if>
        AND issue.reverse_index <![CDATA[ < ]]> 0
        AND workspace.id = #{workspaceId}
        GROUP BY issue.id
@@ -554,7 +557,6 @@
        LEFT OUTER JOIN issue_status iss ON iss.id = issue.issue_status_id
        LEFT OUTER JOIN user_department ud ON ud.department_id = isd.department_id
        WHERE 1=1
        AND issue.parent_issue_id IS NULL
        <if test="title != null and !title.equals('') ">
            AND issue.title like CONCAT('%',#{title},'%')
        </if>
@@ -591,8 +593,14 @@
            ANd issue.complete_date <![CDATA[ <= ]]> #{endCompleteDate}
        </if>
        <if test="hideIssue != null and hideIssue == true">
        <if test="hideCompleteIssue != null and hideCompleteIssue == true">
            AND iss.issue_status_type != 'CLOSE'
        </if>
        <if test="combinationIssueNumber == null or combinationIssueNumber.equals('')">
            <if test="hideDownIssue != null and hideDownIssue == true">
                AND issue.parent_issue_id IS NULL
            </if>
        </if>
        <choose>
@@ -692,7 +700,6 @@
        LEFT OUTER JOIN issue_department isd ON issue.id = isd.issue_id
        LEFT OUTER JOIN issue_status iss ON iss.id = issue.issue_status_id
        WHERE 1=1
        AND issue.parent_issue_id IS NULL
        <if test="title != null and !title.equals('') ">
            AND issue.title like CONCAT('%',#{title},'%')
        </if>
@@ -729,7 +736,13 @@
            ANd issue.complete_date <![CDATA[ <= ]]> #{endCompleteDate}
        </if>
        <if test="hideIssue != null and hideIssue == true">
        <if test="combinationIssueNumber == null or combinationIssueNumber.equals('')">
            <if test="hideDownIssue != null and hideDownIssue == true">
                AND issue.parent_issue_id IS NULL
            </if>
        </if>
        <if test="hideCompleteIssue != null and hideCompleteIssue == true">
            AND iss.issue_status_type != 'CLOSE'
        </if>