From b606f7950b518b0015bc97e5e2d8ee4373736200 Mon Sep 17 00:00:00 2001 From: jjh Date: Thu, 19 Oct 2023 11:10:04 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=AC=EC=9A=A9=EC=9E=90=EC=99=80=20?= =?UTF-8?q?=EA=B8=B0=EA=B4=80=20=EC=BD=94=EB=93=9C=20=EC=A1=B0=ED=9A=8C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/sql/mapper/base/user-mapper.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/resources/sql/mapper/base/user-mapper.xml b/src/main/resources/sql/mapper/base/user-mapper.xml index b4c53ad7..b00eb5a7 100644 --- a/src/main/resources/sql/mapper/base/user-mapper.xml +++ b/src/main/resources/sql/mapper/base/user-mapper.xml @@ -61,7 +61,7 @@ SELECT USER_ID , GRP_ID , ORG_ID , DEPT_CD - , (CASE + , (CASE WHEN A.DEPT_CD = 'default' THEN '기본 부서' ELSE (SELECT DEPT_NM FROM TB_DEPT_INFO WHERE DEPT_CD = A.DEPT_CD) @@ -71,7 +71,7 @@ SELECT USER_ID , (CASE WHEN A.NSTT_CD = 'default' THEN '기본 기관' - ELSE (SELECT INST_NM FROM TB_SGG_INFO WHERE INST_CD = A.NSTT_CD LIMIT 1) + ELSE (SELECT INST_NM FROM TB_SGG_INFO WHERE INST_CD = A.NSTT_CD AND SGG_CD = A.ORG_ID) END ) AS NSTT_NM , CRTFC_DN @@ -218,7 +218,7 @@ UPDATE TB_USER SET , LOCK_DT = NULL , MDFCN_DT = , MDFR = #{currentUser.id} - WHERE USER_ID IN (#{userID}) + WHERE USER_ID IN (#{userID}) /* 사용자 상태 변경(userMapper.setStatus) */