From f1188ad883af2d5f27744686b91b197bcdb9fd8c Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 수, 17 11월 2021 11:15:48 +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