OWL ITS + 탐지시스템(인터넷 진흥원)
박지현
2022-03-07 398a4927e195755bd6a46be99337efd8dacc3dc2
src/main/resources/mybatis/query-template/issueDepartment-template.xml
@@ -17,7 +17,7 @@
    <!--    이슈 담당부서 bulk 삭제 - modify, add 에서 사용  -->
    <delete id="deleteIssueDepartmentByIssueIdAndMultiDepartmentId" parameterType="java.util.HashMap">
        DELETE FROM issue_department WHERE issue_id = #{issueId} AND department_id IN (
        <foreach collection="map.departmentIds" item="item" index="index" separator="," open="" close="">
        <foreach collection="departmentIds" item="item" index="index" separator="," open="" close="">
            #{item}
        </foreach>
        )
@@ -34,8 +34,8 @@
    <!--    이슈 담당부서를 조회한다 -->
    <select id="findByDepartmentIdAndProjectId" resultType="java.util.HashMap" parameterType="java.util.HashMap">
        SELECT DISTINCT(i.id) FROM issue i
                                       INNER JOIN issue_department iu ON iu.issue_id = i.id
                                       INNER JOIN department d ON d.id = iu.department_id
           INNER JOIN issue_department iu ON iu.issue_id = i.id
           INNER JOIN department d ON d.id = iu.department_id
        WHERE i.project_id = #{projectId} AND d.id = #{departmentId}
    </select>