OWL ITS + 탐지시스템(인터넷 진흥원)
jhjang
2021-10-14 d680ff9fa4298ad3c0cd12f5f9d87f6c51110480
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
 
<mapper namespace="kr.wisestone.owl.mapper.IssueHistoryMapper">
 
    <select id="find" resultType="java.util.HashMap" parameterType="kr.wisestone.owl.web.condition.IssueHistoryCondition">
        SELECT
        DISTINCT ih.id as id,
        p.name as projectName,
        p.project_key as projectKey,
        i.issue_number as issueNumber,
        i.title as issueTitle,
        ih.issue_history_type as issueHistoryType,
        SUBSTRING(ih.register_date, 1, 10) as registerDate,
        SUBSTRING(ih.register_date, 12, 16) as registerTime,
        ih.description as description
        FROM
        issue_history ih
        INNER JOIN project p on ih.project_id = p.id
        INNER JOIN issue i on ih.issue_id = i.id
        WHERE 1=1
        AND ih.register_id = #{userId}
        AND ih.register_date between #{searchStartDate} and #{searchEndDate}
        ORDER BY ih.register_date DESC
    </select>
</mapper>