From d5d694bc42eadfe36ae99988ab6ebb22769a32e3 Mon Sep 17 00:00:00 2001
From: 이민희 <mhlee@maprex.co.kr>
Date: 목, 10 3월 2022 13:10:28 +0900
Subject: [PATCH] - 상위이슈와 그 이슈의 하위이슈를 같이 삭제 할 경우 오류 수정 - 이슈리스트 기본값 '상위이슈만 보기'로 수정

---
 src/main/resources/mybatis/query-template/userLevel-template.xml |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/main/resources/mybatis/query-template/userLevel-template.xml b/src/main/resources/mybatis/query-template/userLevel-template.xml
index 9a1659a..0138801 100644
--- a/src/main/resources/mybatis/query-template/userLevel-template.xml
+++ b/src/main/resources/mybatis/query-template/userLevel-template.xml
@@ -10,7 +10,7 @@
         ul.permission as permission
         FROM
         user_level ul
-        WHERE id != 1 AND 1=1
+        WHERE id != 1
         <if test="levelName != '' and levelName != null">
             AND ul.level_name like CONCAT('%',#{levelName},'%')
         </if>
@@ -24,10 +24,10 @@
 
     <select id="count" resultType="java.lang.Long" parameterType="kr.wisestone.owl.web.condition.UserLevelCondition">
         SELECT
-        count(ul.id)
+        count(DISTINCT ul.id)
         FROM
         user_level ul
-        WHERE 1=1
+        WHERE id != 1
         <if test="levelName != '' and levelName != null">
             AND ul.level_name like CONCAT('%',#{levelName},'%')
         </if>

--
Gitblit v1.8.0