-- 房型管理、房间管理、房间锁定管理菜单配置
-- 基于PMS模块菜单结构
-- 注意：菜单ID使用雪花算法生成，确保全局唯一性
-- 房型管理菜单ID范围：1926240964416086060-1926240964416086069
-- 房间管理菜单ID范围：1926240964416086070-1926240964416086079
-- 房间锁定管理菜单ID范围：1926240964416086080-1926240964416086089
-- 房型管理菜单
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086060,
        '房型管理',
        1926240964416086001,
        '2',
        'roomType',
        'pms/roomType/index',
        1,
        0,
        'C',
        '0',
        '0',
        'pms:roomType:list',
        'hotel',
        103,
        1,
        sysdate(),
        null,
        null,
        '房型管理菜单'
    );
-- 房型管理按钮
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086061,
        '房型管理查询',
        1926240964416086060,
        '1',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:roomType:query',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086062,
        '房型管理新增',
        1926240964416086060,
        '2',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:roomType:add',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086063,
        '房型管理修改',
        1926240964416086060,
        '3',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:roomType:edit',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086064,
        '房型管理删除',
        1926240964416086060,
        '4',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:roomType:remove',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086065,
        '房型管理导出',
        1926240964416086060,
        '5',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:roomType:export',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
-- 房间管理菜单
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086070,
        '房间管理',
        1926240964416086001,
        '3',
        'room',
        'pms/room/index',
        1,
        0,
        'C',
        '0',
        '0',
        'pms:room:list',
        'room',
        103,
        1,
        sysdate(),
        null,
        null,
        '房间管理菜单'
    );
-- 房间管理按钮
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086071,
        '房间管理查询',
        1926240964416086070,
        '1',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:room:query',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086072,
        '房间管理新增',
        1926240964416086070,
        '2',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:room:add',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086073,
        '房间管理修改',
        1926240964416086070,
        '3',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:room:edit',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086074,
        '房间管理删除',
        1926240964416086070,
        '4',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:room:remove',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086075,
        '房间管理导出',
        1926240964416086070,
        '5',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:room:export',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086076,
        '房间状态更新',
        1926240964416086070,
        '6',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:room:updateStatus',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
-- 房间锁定管理菜单
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086080,
        '房间锁定管理',
        1926240964416086001,
        '4',
        'roomLock',
        'pms/roomLock/index',
        1,
        0,
        'C',
        '0',
        '0',
        'pms:roomLock:list',
        'lock',
        103,
        1,
        sysdate(),
        null,
        null,
        '房间锁定管理菜单'
    );
-- 房间锁定管理按钮
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086081,
        '房间锁定查询',
        1926240964416086080,
        '1',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:roomLock:query',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086082,
        '房间锁定新增',
        1926240964416086080,
        '2',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:roomLock:add',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086083,
        '房间锁定修改',
        1926240964416086080,
        '3',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:roomLock:edit',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086084,
        '房间锁定删除',
        1926240964416086080,
        '4',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:roomLock:remove',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086085,
        '房间锁定导出',
        1926240964416086080,
        '5',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:roomLock:export',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
insert into sys_menu (
        menu_id,
        menu_name,
        parent_id,
        order_num,
        path,
        component,
        is_frame,
        is_cache,
        menu_type,
        visible,
        status,
        perms,
        icon,
        create_dept,
        create_by,
        create_time,
        update_by,
        update_time,
        remark
    )
values(
        1926240964416086086,
        '房间解锁',
        1926240964416086080,
        '6',
        '#',
        '',
        1,
        0,
        'F',
        '0',
        '0',
        'pms:roomLock:unlock',
        '#',
        103,
        1,
        sysdate(),
        null,
        null,
        ''
    );
-- 给超级管理员分配权限
INSERT INTO sys_role_menu (role_id, menu_id)
VALUES (1, 1926240964416086060),
    (1, 1926240964416086061),
    (1, 1926240964416086062),
    (1, 1926240964416086063),
    (1, 1926240964416086064),
    (1, 1926240964416086065),
    (1, 1926240964416086070),
    (1, 1926240964416086071),
    (1, 1926240964416086072),
    (1, 1926240964416086073),
    (1, 1926240964416086074),
    (1, 1926240964416086075),
    (1, 1926240964416086076),
    (1, 1926240964416086080),
    (1, 1926240964416086081),
    (1, 1926240964416086082),
    (1, 1926240964416086083),
    (1, 1926240964416086084),
    (1, 1926240964416086085),
    (1, 1926240964416086086);
SELECT '房型管理、房间管理、房间锁定管理菜单配置完成' as message;
