From 43e4a6678f4976df214cb64fcd59c2a09c3a7d80 Mon Sep 17 00:00:00 2001
From: jhjang <jhjang@maprex.co.kr>
Date: 월, 27 12월 2021 10:54:43 +0900
Subject: [PATCH] - db 마이그레이션 파일 초기화

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

diff --git a/src/main/resources/mybatis/query-template/issueType-template.xml b/src/main/resources/mybatis/query-template/issueType-template.xml
index d10b62e..e2646b2 100644
--- a/src/main/resources/mybatis/query-template/issueType-template.xml
+++ b/src/main/resources/mybatis/query-template/issueType-template.xml
@@ -17,9 +17,25 @@
         <if test="name != '' and name != null">
             AND it.name like CONCAT('%',#{name},'%')
         </if>
+        <choose>
+            <when test="allProjectIds != null and allProjectIds.size != 0">
+                AND it.project_id IN
+                <foreach collection="allProjectIds" item="item" index="index" separator="," open="(" close=")">
+                    #{item}
+                </foreach>
+            </when>
+        </choose>
         <if test="projectId != '' and projectId != null">
             AND it.project_id like CONCAT('%',#{projectId},'%')
         </if>
+        <choose>
+            <when test="downProjectIds != null and downProjectIds.size != 0">
+                OR it.project_id IN
+                <foreach collection="downProjectIds" item="item" index="index" separator="," open="(" close=")">
+                    #{item}
+                </foreach>
+            </when>
+        </choose>
         <if test="useProject != '' and useProject != null and useProject == true">
             AND it.project_id IS NOT NULL
         </if>

--
Gitblit v1.8.0