INSERT INTO cb_app_group ( group_id, group_code, group_name, description, active_yn ) VALUES ( #{groupId,jdbcType=NUMERIC}, UPPER(#{command.groupCode,jdbcType=VARCHAR}), #{command.groupName,jdbcType=VARCHAR}, #{command.description,jdbcType=VARCHAR}, 'Y' ) UPDATE cb_app_group SET active_yn = #{activeYn,jdbcType=VARCHAR} WHERE group_id = #{groupId,jdbcType=NUMERIC} INSERT INTO cb_user_group (group_id, user_id) VALUES (#{groupId,jdbcType=NUMERIC}, #{userId,jdbcType=NUMERIC}) DELETE FROM cb_user_group WHERE group_id = #{groupId,jdbcType=NUMERIC} AND user_id = #{userId,jdbcType=NUMERIC} INSERT INTO cb_group_role (group_id, role_id) VALUES (#{groupId,jdbcType=NUMERIC}, #{roleId,jdbcType=NUMERIC}) DELETE FROM cb_group_role WHERE group_id = #{groupId,jdbcType=NUMERIC} AND role_id = #{roleId,jdbcType=NUMERIC}