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) */