diff --git a/src/main/resources/sql/mapper/base/actiongroup-mapper.xml b/src/main/resources/sql/mapper/base/actiongroup-mapper.xml index 49c3b1e0..8d799cfa 100644 --- a/src/main/resources/sql/mapper/base/actiongroup-mapper.xml +++ b/src/main/resources/sql/mapper/base/actiongroup-mapper.xml @@ -11,7 +11,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 c9d051ab..5d6c2342 100644 --- a/src/main/resources/sql/mapper/base/authority-mapper.xml +++ b/src/main/resources/sql/mapper/base/authority-mapper.xml @@ -14,11 +14,42 @@ -SELECT * FROM ( - SELECT 0 AUTH_TYPE, 'ROLE_ADMIN' AUTH_ID, '시스템 관리자' AUTH_NM, '시스템 관리자' DSCRP, 'all' INF_SCP, 'all' USER_INF_SCP,REG_DT UNION - SELECT 1 AUTH_TYPE, 'ROLE_ANONYMOUS' AUTH_ID, '익명 사용자' AUTH_NM, '모든 사용자' DSCRP, 'none' INF_SCP, 'none' USER_INF_SCP,REG_DT UNION - SELECT 1 AUTH_TYPE, 'ROLE_USER' AUTH_ID, '시스템 사용자' AUTH_NM, '로그인한 사용자' DSCRP, 'self' INF_SCP, 'self' USER_INF_SCP,REG_DT 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 3934e28a..60d696c2 100644 --- a/src/main/resources/sql/mapper/base/code-mapper.xml +++ b/src/main/resources/sql/mapper/base/code-mapper.xml @@ -41,21 +41,37 @@ - -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}) + + AND USE_YN = 'Y' + AND CTGR_ID IN (#{categoryID}) + - + + - + - + -/* 코드 카테고리 등록(codeMapper.insertCategory) */ + +/* 코드 카테고리 등록(codeMapper.insertCategory) */ INSERT INTO TB_CODE_CTGR ( CTGR_ID , CTGR_NM @@ -76,23 +92,36 @@ INSERT INTO TB_CODE_CTGR ( , 'Y' ) -/* 코드 카테고리 수정(codeMapper.updateCategory) */ + +/* 코드 카테고리 수정(codeMapper.updateCategory) */ UPDATE TB_CODE_CTGR SET CTGR_NM = #{category.name} , DSCRP = #{category.description} , MDFCN_DT = , MDFR = #{currentUser.id} -WHERE CTGR_ID = #{category.id} +WHERE CTGR_ID = #{category.id} + -/* 코드 카테고리 제거(codeMapper.removeCategories) */ + +/* 코드 카테고리 제거(codeMapper.removeCategories) */ UPDATE TB_CODE_CTGR SET MDFCN_DT = , MDFR = #{currentUser.id} , USE_YN = 'N' -WHERE CTGR_ID IN (#{categoryID}) +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}) @@ -100,13 +129,18 @@ SELECT * - + - + -/* 코드그룹 등록(codeMapper.insertGroup) */ + +/* 코드그룹 등록(codeMapper.insertGroup) */ INSERT INTO TB_CODE_GRP ( GRP_ID , GRP_NM @@ -129,16 +163,19 @@ INSERT INTO TB_CODE_GRP ( , 'Y' ) -/* 코드그룹 수정(codeMapper.updateGroup) */ + +/* 코드그룹 수정(codeMapper.updateGroup) */ UPDATE TB_CODE_GRP SET GRP_NM = #{group.name} , CTGR_ID = #{group.categoryID} , DSCRP = #{group.description} , MDFCN_DT = , MDFR = #{currentUser.id} - WHERE GRP_ID = #{group.id} + WHERE GRP_ID = #{group.id} + -/*코드그룹 제거(codeMapper.removeGroups) */ + +/*코드그룹 제거(codeMapper.removeGroups) */ UPDATE TB_CODE_GRP SET USE_YN = 'N' , MDFCN_DT = @@ -146,24 +183,46 @@ UPDATE TB_CODE_GRP SET CTGR_ID IN (#{categoryID}) GRP_ID IN (#{groupID}) - + + - -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 USE_YN = 'Y' AND GRP_ID IN (#{groupID}) - AND CODE IN (#{code}) + AND CODE IN (#{code}) + - + + - + - + -/* 코드 등록(codeMapper.insertCode) */ + +/* 코드 등록(codeMapper.insertCode) */ INSERT INTO TB_CMN_CODE ( GRP_ID , CODE @@ -192,9 +251,11 @@ INSERT INTO TB_CMN_CODE ( , , #{currentUser.id} , 'Y' -) +) + -/* 코드 수정(codeMapper.updateCode) */ + +/* 코드 수정(codeMapper.updateCode) */ UPDATE TB_CMN_CODE SET CODE_VAL = #{code.value} , DSCRP = #{code.description} @@ -204,9 +265,11 @@ UPDATE TB_CMN_CODE SET , MDFCN_DT = , MDFR = #{currentUser.id} WHERE GRP_ID = #{code.groupID} - AND CODE = #{code.code} + AND CODE = #{code.code} + -/* 코드 정렬순서 변경(codeMapper.reorderCodes) */ + +/* 코드 정렬순서 변경(codeMapper.reorderCodes) */ UPDATE TB_CMN_CODE SET SRT_ORD = CASE CODE WHEN #{code} THEN #{index} @@ -215,9 +278,11 @@ UPDATE TB_CMN_CODE SET , MDFCN_DT = , MDFR = #{currentUser.id} WHERE GRP_ID = #{groupID} - AND CODE IN (#{code}) + AND CODE IN (#{code}) + -/* 코드 제거(codeMapper.removeCodes) */ + +/* 코드 제거(codeMapper.removeCodes) */ UPDATE TB_CMN_CODE SET MDFCN_DT = , MDFR = #{currentUser.id} @@ -225,6 +290,7 @@ UPDATE TB_CMN_CODE SET AND GRP_ID IN (#{groupID}) AND CODE IN (#{code}) - + + \ No newline at end of file diff --git a/src/main/resources/sql/mapper/base/menu-mapper.xml b/src/main/resources/sql/mapper/base/menu-mapper.xml index 38f234f6..25627dc5 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