From d6bd49c472188d3032cd9f248ef6798d97b5ad47 Mon Sep 17 00:00:00 2001 From: leebj Date: Mon, 1 Jul 2024 11:13:12 +0900 Subject: [PATCH] =?UTF-8?q?SELECT=20=EC=BF=BC=EB=A6=AC=20=EC=95=A0?= =?UTF-8?q?=EC=8A=A4=ED=84=B0=EB=A6=AC=EC=8A=A4=ED=81=AC(*)=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sql/mapper/base/actiongroup-mapper.xml | 5 ++- .../sql/mapper/base/authority-mapper.xml | 41 ++++++++++++++++--- .../resources/sql/mapper/base/code-mapper.xml | 33 +++++++++++++-- .../resources/sql/mapper/base/menu-mapper.xml | 12 +++++- 4 files changed, 81 insertions(+), 10 deletions(-) diff --git a/src/main/resources/sql/mapper/base/actiongroup-mapper.xml b/src/main/resources/sql/mapper/base/actiongroup-mapper.xml index 14ea855..ef923c9 100644 --- a/src/main/resources/sql/mapper/base/actiongroup-mapper.xml +++ b/src/main/resources/sql/mapper/base/actiongroup-mapper.xml @@ -10,7 +10,10 @@ -SELECT A.* +SELECT A.GRP_ID + , A.GRP_NM + , A.DSCRP + , A.REG_DT FROM TB_ACTION_GRP A AND GRP_ID IN (#{groupID}) diff --git a/src/main/resources/sql/mapper/base/authority-mapper.xml b/src/main/resources/sql/mapper/base/authority-mapper.xml index a2dae9e..d6b449a 100644 --- a/src/main/resources/sql/mapper/base/authority-mapper.xml +++ b/src/main/resources/sql/mapper/base/authority-mapper.xml @@ -13,11 +13,42 @@ -SELECT * FROM ( - SELECT 0 AUTH_TYPE, 'ROLE_ADMIN' AUTH_ID, '시스템 관리자' AUTH_NM, '시스템 관리자' DSCRP, 'all' INF_SCP, 'all' USER_INF_SCP,REG_DT FROM DUAL UNION - SELECT 1 AUTH_TYPE, 'ROLE_ANONYMOUS' AUTH_ID, '익명 사용자' AUTH_NM, '모든 사용자' DSCRP, 'none' INF_SCP, 'none' USER_INF_SCP,REG_DT FROM DUAL UNION - SELECT 1 AUTH_TYPE, 'ROLE_USER' AUTH_ID, '시스템 사용자' AUTH_NM, '로그인한 사용자' DSCRP, 'self' INF_SCP, 'self' USER_INF_SCP,REG_DT FROM DUAL UNION - SELECT 2 AUTH_TYPE, AUTH_ID, AUTH_NM, DSCRP, INF_SCP, USER_INF_SCP, REG_DT +SELECT * + FROM ( + SELECT 0 AS AUTH_TYPE + , 'ROLE_ADMIN' AS AUTH_ID + , '시스템 관리자' AS AUTH_NM + , '시스템 관리자' AS DSCRP + , 'all' AS INF_SCP + , 'all' AS USER_INF_SCP + , AS REG_DT + FROM DUAL + UNION + SELECT 1 AS AUTH_TYPE + , 'ROLE_ANONYMOUS' AS AUTH_ID + , '익명 사용자' AS AUTH_NM + , '모든 사용자' AS DSCRP + , 'none' AS INF_SCP + , 'none' AS USER_INF_SCP + , AS REG_DT + FROM DUAL + UNION + SELECT 1 AS AUTH_TYPE + , 'ROLE_USER' AS AUTH_ID + , '시스템 사용자' AS AUTH_NM + , '로그인한 사용자' AS DSCRP + , 'self' AS INF_SCP + , 'self' AS USER_INF_SCP + , AS REG_DT + FROM DUAL + UNION + SELECT 2 AS AUTH_TYPE + , AUTH_ID + , AUTH_NM + , DSCRP + , INF_SCP + , USER_INF_SCP + , REG_DT FROM TB_AUTHORITY ) A diff --git a/src/main/resources/sql/mapper/base/code-mapper.xml b/src/main/resources/sql/mapper/base/code-mapper.xml index 3934e28..b02aa23 100644 --- a/src/main/resources/sql/mapper/base/code-mapper.xml +++ b/src/main/resources/sql/mapper/base/code-mapper.xml @@ -42,7 +42,14 @@ -SELECT * +SELECT CTGR_ID + , CTGR_NM + , DSCRP + , USE_YN + , REG_DT + , RGTR + , MDFCN_DT + , MDFR FROM TB_CODE_CTGR AND USE_YN = 'Y' AND CTGR_ID IN (#{categoryID}) @@ -92,7 +99,15 @@ UPDATE TB_CODE_CTGR SET WHERE CTGR_ID IN (#{categoryID}) -SELECT * +SELECT GRP_ID + , CTGR_ID + , GRP_NM + , DSCRP + , USE_YN + , REG_DT + , RGTR + , MDFCN_DT + , MDFR FROM TB_CODE_GRP AND USE_YN = 'Y' AND CTGR_ID IN (#{categoryID}) @@ -149,7 +164,19 @@ UPDATE TB_CODE_GRP SET -SELECT * +SELECT GRP_ID + , CODE + , CODE_VAL + , DSCRP + , ETC_1 + , ETC_2 + , ETC_3 + , SRT_ORD + , USE_YN + , REG_DT + , RGTR + , MDFCN_DT + , MDFR FROM TB_CMN_CODE AND USE_YN = 'Y' AND GRP_ID IN (#{groupID}) diff --git a/src/main/resources/sql/mapper/base/menu-mapper.xml b/src/main/resources/sql/mapper/base/menu-mapper.xml index 599e194..6945ea3 100644 --- a/src/main/resources/sql/mapper/base/menu-mapper.xml +++ b/src/main/resources/sql/mapper/base/menu-mapper.xml @@ -17,7 +17,17 @@ -SELECT A.* +SELECT A.MENU_NO + , A.MENU_NM + , A.PRNT_NO + , A.PGRM_FILE_NM + , A.ACTION + , A.DSCRP + , A.IMG_NM + , A.IMG_CNF + , A.SRT_ORD + , A.REG_DT + , A.RGTR FROM TB_MENU A WHERE MENU_NO = #{menuID} ORDER BY PRNT_NO, SRT_ORD, MENU_NO