feat(backoffice): add Smilegate identity administration

This commit is contained in:
devmrko
2026-07-22 13:29:47 +09:00
parent 56b9b511c1
commit ea5a116203
10 changed files with 216 additions and 117 deletions

View File

@@ -9,7 +9,7 @@
dept_code,
can_read_contents,
active AS active_yn
FROM cb_app_user
FROM sg_app_user
ORDER BY username
</select>
@@ -20,7 +20,7 @@
dept_code,
can_read_contents,
active AS active_yn
FROM cb_app_user
FROM sg_app_user
WHERE user_id = #{userId}
</select>
@@ -29,18 +29,18 @@
u.user_name AS username,
r.role_id,
r.role_name
FROM cb_user_role ur
JOIN cb_app_user u ON u.user_id = ur.user_id
JOIN cb_app_role r ON r.role_id = ur.role_id
FROM sg_user_role ur
JOIN sg_app_user u ON u.user_id = ur.user_id
JOIN sg_app_role r ON r.role_id = ur.role_id
ORDER BY u.user_name, r.role_name
</select>
<select id="nextUserId" resultType="long">
SELECT NVL(MAX(user_id), 0) + 1 FROM cb_app_user
SELECT NVL(MAX(user_id), 0) + 1 FROM sg_app_user
</select>
<insert id="insertUser">
INSERT INTO cb_app_user (
INSERT INTO sg_app_user (
user_id, user_name, employee_no, dept_code, can_read_contents, active
) VALUES (
#{userId},
@@ -53,18 +53,18 @@
</insert>
<update id="updateActive">
UPDATE cb_app_user
UPDATE sg_app_user
SET active = #{activeYn}
WHERE user_id = #{userId}
</update>
<insert id="insertUserRole">
INSERT INTO cb_user_role (user_id, role_id)
INSERT INTO sg_user_role (user_id, role_id)
VALUES (#{userId}, #{roleId})
</insert>
<delete id="deleteUserRole">
DELETE FROM cb_user_role
DELETE FROM sg_user_role
WHERE user_id = #{userId}
AND role_id = #{roleId}
</delete>