From dd7e78ae9a5732ec89f65a8c51ee894947bafcb6 Mon Sep 17 00:00:00 2001
From: jhjang <jhjang@maprex.co.kr>
Date: 화, 16 11월 2021 11:07:33 +0900
Subject: [PATCH] - 전체 프로젝트 선택시 이슈유형에 프로젝트 설정 되어 있는 항목만 리스트로 가져오도록 수정

---
 src/main/resources/mybatis/query-template/department-template.xml |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/mybatis/query-template/department-template.xml b/src/main/resources/mybatis/query-template/department-template.xml
index 5c0a05e..95989ae 100644
--- a/src/main/resources/mybatis/query-template/department-template.xml
+++ b/src/main/resources/mybatis/query-template/department-template.xml
@@ -18,6 +18,14 @@
         <if test="id != '' and id != null">
             AND d.id like CONCAT('%',#{id},'%')
         </if>
+        <choose>
+            <when test="excludeIds != null and excludeIds.size != 0">
+                AND d.id NOT IN
+                <foreach collection="excludeIds" item="item" index="index" separator="," open="(" close=")">
+                    #{item}
+                </foreach>
+            </when>
+        </choose>
         <if test="pageSize != '' and pageSize != null">
             limit #{pageSize} offset #{page};
         </if>

--
Gitblit v1.8.0