From d3c662dfcd180602c5740837e0cecb51e78d4cb4 Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 화, 16 11월 2021 17:16:56 +0900
Subject: [PATCH] - 이슈관리 업체,ISP,호스팅 추가 완료 - 프로젝트 부서담당자 백엔드 추가 * db날리고 실행

---
 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