From fe57e23e7a3a1a9930ca1b59d2c23934e675c094 Mon Sep 17 00:00:00 2001 From: leebj Date: Fri, 27 Sep 2024 13:49:43 +0900 Subject: [PATCH] no message --- .../sql/mapper/base/authority-mapper.xml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/src/main/resources/sql/mapper/base/authority-mapper.xml b/src/main/resources/sql/mapper/base/authority-mapper.xml index baa4a4d9..a779d18d 100644 --- a/src/main/resources/sql/mapper/base/authority-mapper.xml +++ b/src/main/resources/sql/mapper/base/authority-mapper.xml @@ -166,11 +166,23 @@ SELECT A.AUTH_ID , UPPER(B.USER_ACNT) AS USER_ACNT , B.USER_NM , B.ORG_ID - , (SELECT SGG_NM FROM TB_SGG WHERE SGG_CD = B.ORG_ID) AS SGG_NM + , (CASE + WHEN B.ORG_ID = 'ADMIN' + THEN '-' + ELSE (SELECT SGG_NM FROM TB_SGG WHERE SGG_CD = B.ORG_ID) + END) AS SGG_NM , B.NSTT_CD - , (SELECT INST_NM FROM TB_SGG WHERE SGG_CD = B.ORG_ID) AS INST_NM + , (CASE + WHEN B.ORG_ID = 'ADMIN' + THEN '-' + ELSE (SELECT INST_NM FROM TB_SGG WHERE SGG_CD = B.ORG_ID) + END) AS INST_NM , B.DEPT_CD - , (SELECT DEPT_NM FROM TB_DEPT WHERE DEPT_CD = B.DEPT_CD) AS DEPT_NM + , (CASE + WHEN B.DEPT_CD = 'ADMIN00' + THEN '-' + ELSE (SELECT DEPT_NM FROM TB_DEPT WHERE DEPT_CD = B.DEPT_CD) + END) AS DEPT_NM FROM TB_AUTH_USER A , TB_USER B