diff --git a/src/main/resources/sql/mapper/base/actiongroup-mapper.xml b/src/main/resources/sql/mapper/base/actiongroup-mapper.xml
index 14ea855d..49c3b1e0 100644
--- a/src/main/resources/sql/mapper/base/actiongroup-mapper.xml
+++ b/src/main/resources/sql/mapper/base/actiongroup-mapper.xml
@@ -9,22 +9,29 @@
-
+
+
SELECT A.*
FROM TB_ACTION_GRP A
AND GRP_ID IN (#{groupID})
AND ${by} LIKE CONCAT('%', #{term}, '%')
-
+
+
-
+
-
+
-/* 기능그룹 등록(actionGroupMapper.insertGroup) */
+
+/* 기능그룹 등록(actionGroupMapper.insertGroup) */
INSERT INTO TB_ACTION_GRP (
GRP_ID
, GRP_NM
@@ -35,27 +42,35 @@ INSERT INTO TB_ACTION_GRP (
, #{name}
, #{description}
,
-)
+)
+
-/* 기능그룹 수정(actionGroupMapper.updateGroup) */
+
+/* 기능그룹 수정(actionGroupMapper.updateGroup) */
UPDATE TB_ACTION_GRP SET
GRP_NM = #{name}
, DSCRP = #{description}
- WHERE GRP_ID = #{id}
+ WHERE GRP_ID = #{id}
+
-/* 기능그룹 삭제(actionGroupMapper.removeGroups) */
+
+/* 기능그룹 삭제(actionGroupMapper.removeGroups) */
DELETE FROM TB_ACTION_GRP
- WHERE GRP_ID IN (#{groupID})
+ WHERE GRP_ID IN (#{groupID})
+
-
-/* 그룹별 기능 추가(actionGroupMapper.addActions) */
+
+/* 그룹별 기능 추가(actionGroupMapper.addActions) */
INSERT INTO TB_GRP_ACTION (GRP_ID, ACTION, REG_DT, RGTR)
SELECT GRP_ID, ACTION,, #{currentUser.id}
FROM (
@@ -66,9 +81,11 @@ SELECT GRP_ID, ACTION,, #{currentUser.id}
FROM TB_GRP_ACTION B
WHERE B.GRP_ID = A.GRP_ID
AND B.ACTION = A.ACTION
- )
+ )
+
-/* 그룹별 기능 삭제(actionGroupMapper.removeActions) */
+
+/* 그룹별 기능 삭제(actionGroupMapper.removeActions) */
DELETE FROM TB_GRP_ACTION
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 94f295c1..c9d051ab 100644
--- a/src/main/resources/sql/mapper/base/authority-mapper.xml
+++ b/src/main/resources/sql/mapper/base/authority-mapper.xml
@@ -12,7 +12,8 @@
-
+
+
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
@@ -25,15 +26,21 @@ SELECT * FROM (
AND ${by} LIKE CONCAT('%', #{term}, '%')
-
+
+
-/* 권한 목록 조회(authorityMapper.getAuthorityList) */
-
+
+/* 권한 목록 조회(authorityMapper.getAuthorityList) */
+
+
-/* 권한 가져오기(authorityMapper.getAuthorities) */
-
+
+/* 권한 가져오기(authorityMapper.getAuthorities) */
+
+
-/* 권한 등록(authorityMapper.insertAuthority) */
+
+/* 권한 등록(authorityMapper.insertAuthority) */
INSERT INTO TB_AUTHORITY (
AUTH_ID
, AUTH_NM
@@ -48,30 +55,38 @@ INSERT INTO TB_AUTHORITY (
, #{infoScope}
, #{userInfoScope}
,
-)
+)
+
-/* 권한 수정(authorityMapper.updateAuthority) */
+
+/* 권한 수정(authorityMapper.updateAuthority) */
UPDATE TB_AUTHORITY SET
AUTH_NM = #{name}
, DSCRP = #{description}
, INF_SCP = #{infoScope}
, USER_INF_SCP = #{userInfoScope}
- WHERE AUTH_ID = #{id}
+ WHERE AUTH_ID = #{id}
+
-/* 권한 삭제(authorityMapper.removeAuthorities) */
+
+/* 권한 삭제(authorityMapper.removeAuthorities) */
DELETE FROM TB_AUTHORITY
- WHERE AUTH_ID IN (#{authID})
+ WHERE AUTH_ID IN (#{authID})
+
-/* 권한-기능그룹 가져오기(authorityMapper.getActionGroups) */
+
+/* 권한-기능그룹 가져오기(authorityMapper.getActionGroups) */
SELECT A.*
, (SELECT AG.GRP_NM FROM TB_ACTION_GRP AG WHERE AG.GRP_ID = A.GRP_ID) AS GRP_NM
FROM TB_AUTH_ACTION A
WHERE AUTH_ID IN (#{authID})
ORDER BY AUTH_ID, GRP_ID
-
+
+
-/* 권한-기능그룹 추가(authorityMapper.addActionGroups) */
+
+/* 권한-기능그룹 추가(authorityMapper.addActionGroups) */
INSERT INTO TB_AUTH_ACTION (AUTH_ID, GRP_ID, REG_DT)
SELECT AUTH_ID, GRP_ID,
FROM (
@@ -84,7 +99,8 @@ SELECT AUTH_ID, GRP_ID,
AND B.GRP_ID = A.GRP_ID
)
-/* 권한-기능그룹 삭제(authorityMapper.removeActionGroups) */
+
+/* 권한-기능그룹 삭제(authorityMapper.removeActionGroups) */
DELETE FROM TB_AUTH_ACTION
AND AUTH_ID IN (#{authID})
@@ -92,7 +108,8 @@ DELETE FROM TB_AUTH_ACTION
-/* 권한-기능 가져오기(authorityMapper.getActionList) */
+
+/* 권한-기능 가져오기(authorityMapper.getActionList) */
SELECT A.AUTH_ID
, A.GRP_ID
, C.ACTION
@@ -101,7 +118,8 @@ SELECT A.AUTH_ID
, TB_GRP_ACTION C
WHERE A.GRP_ID = B.GRP_ID
AND B.GRP_ID = C.GRP_ID
- ORDER BY A.AUTH_ID, A.GRP_ID, C.ACTION
+ ORDER BY A.AUTH_ID, A.GRP_ID, C.ACTION
+
@@ -122,15 +140,21 @@ SELECT A.*
AND A.USER_ID = B.USER_ID
-
+
+
-/* 권한-사용자 가져오기(authorityMapper.getUserList) */
-
+
+/* 권한-사용자 가져오기(authorityMapper.getUserList) */
+
+
-/* 사용자-권한 가져오기(authorityMapper.getUserAuths) */
-
+
+/* 사용자-권한 가져오기(authorityMapper.getUserAuths) */
+
+
-/* 권한-사용자 추가(authorityMapper.addUsers) */
+
+/* 권한-사용자 추가(authorityMapper.addUsers) */
INSERT INTO TB_AUTH_USER (AUTH_ID, USER_ID, REG_DT)
SELECT AUTH_ID, USER_ID,
FROM (
@@ -141,9 +165,11 @@ SELECT AUTH_ID, USER_ID,
FROM TB_AUTH_USER B
WHERE B.AUTH_ID = A.AUTH_ID
AND B.USER_ID = A.USER_ID
- )
+ )
+
-/* 권한-사용자 삭제(authorityMapper.removeUsers) */
+
+/* 권한-사용자 삭제(authorityMapper.removeUsers) */
DELETE FROM TB_AUTH_USER
AND AUTH_ID IN (#{authID})
diff --git a/src/main/resources/sql/mapper/base/menu-mapper.xml b/src/main/resources/sql/mapper/base/menu-mapper.xml
index 599e1943..38f234f6 100644
--- a/src/main/resources/sql/mapper/base/menu-mapper.xml
+++ b/src/main/resources/sql/mapper/base/menu-mapper.xml
@@ -20,15 +20,21 @@
SELECT A.*
FROM TB_MENU A
WHERE MENU_NO = #{menuID}
- ORDER BY PRNT_NO, SRT_ORD, MENU_NO
+ ORDER BY PRNT_NO, SRT_ORD, MENU_NO
+
-
+
-
+
-
-
/* 사용자 정보 수정(userMapper.updateUser) */