OWL ITS + 탐지시스템(인터넷 진흥원)
이민희
2022-02-08 e0e5ecc842ce5af1a7c0229a923c0edd4aaac2f1
src/main/resources/mybatis/query-template/issue-template.xml
@@ -132,6 +132,10 @@
            ANd issue.complete_date <![CDATA[ <= ]]> #{endCompleteDate}
        </if>
        <if test="beginDateRange != null and !beginDateRange.equals('') and endDateRange != null and !endDateRange.equals('')">
            AND (issue.start_date BETWEEN #{beginDateRange} AND #{endDateRange} OR issue.complete_date BETWEEN #{beginDateRange} AND #{endDateRange})
        </if>
        <if test="combinationIssueNumber == null or combinationIssueNumber.equals('')">
            <if test="hideDownIssue != null and hideDownIssue == true">
                AND issue.parent_issue_id IS NULL
@@ -140,6 +144,10 @@
        <if test="hideCompleteIssue != null and hideCompleteIssue == true">
            AND issue_status.issue_status_type != 'CLOSE'
        </if>
        <if test="parentYN != null and parentYN == true">
            AND issue.parent_issue_id IS NULL
        </if>
        <choose>
@@ -242,7 +250,7 @@
        AND issue.reverse_index <![CDATA[ < ]]> 0
        AND workspace.id = #{workspaceId}
        GROUP BY issue.id
        ORDER BY issue.modify_date DESC
        ORDER BY issue.register_date DESC
        <if test="page != null and !page.equals('')">
            limit #{pageSize} offset #{page};
        </if>
@@ -250,7 +258,7 @@
    <select id="count" resultType="java.lang.Long" parameterType="kr.wisestone.owl.web.condition.IssueCondition">
        SELECT
        COUNT(issue.id)
        COUNT(DISTINCT issue.id)
        FROM issue issue
        INNER JOIN project project FORCE INDEX(workspaceIdIndex) ON issue.project_id = project.id
        INNER JOIN workspace workspace ON workspace.id = project.workspace_id
@@ -345,6 +353,10 @@
            ANd issue.complete_date <![CDATA[ <= ]]> #{endCompleteDate}
        </if>
        <if test="beginDateRange != null and !beginDateRange.equals('') and endDateRange != null and !endDateRange.equals('')">
            AND (issue.start_date BETWEEN #{beginDateRange} AND #{endDateRange} OR issue.complete_date BETWEEN #{beginDateRange} AND #{endDateRange})
        </if>
        <if test="combinationIssueNumber == null or combinationIssueNumber.equals('')">
            <if test="hideDownIssue != null and hideDownIssue == true">
                AND issue.parent_issue_id IS NULL