|
|
|
@ -13,11 +13,42 @@
|
|
|
|
|
</resultMap>
|
|
|
|
|
|
|
|
|
|
<sql id="selectAuthorities"><include refid="utility.paging-prefix" />
|
|
|
|
|
SELECT * FROM (
|
|
|
|
|
SELECT 0 AUTH_TYPE, 'ROLE_ADMIN' AUTH_ID, '시스템 관리자' AUTH_NM, '시스템 관리자' DSCRP, 'all' INF_SCP, 'all' USER_INF_SCP,<include refid="utility.now"/>REG_DT FROM DUAL UNION
|
|
|
|
|
SELECT 1 AUTH_TYPE, 'ROLE_ANONYMOUS' AUTH_ID, '익명 사용자' AUTH_NM, '모든 사용자' DSCRP, 'none' INF_SCP, 'none' USER_INF_SCP,<include refid="utility.now"/>REG_DT FROM DUAL UNION
|
|
|
|
|
SELECT 1 AUTH_TYPE, 'ROLE_USER' AUTH_ID, '시스템 사용자' AUTH_NM, '로그인한 사용자' DSCRP, 'self' INF_SCP, 'self' USER_INF_SCP,<include refid="utility.now"/>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
|
|
|
|
|
, <include refid="utility.now"/> 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
|
|
|
|
|
, <include refid="utility.now"/> 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
|
|
|
|
|
, <include refid="utility.now"/> 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
|
|
|
|
|
<where>
|
|
|
|
|