-- 菜单 SQL
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
values('轮挡台账', '2026', '1', '/manage/ledger_rfid', 'C', '0', 'manage:ledger_rfid:view', '#', 'admin', sysdate(), '', null, '轮挡台账菜单');

-- 按钮父菜单ID
SELECT @parentId := LAST_INSERT_ID();

-- 按钮 SQL
insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
values('轮挡台账查询', @parentId, '1',  '#',  'F', '0', 'manage:ledger_rfid:list',         '#', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
values('轮挡台账新增', @parentId, '2',  '#',  'F', '0', 'manage:ledger_rfid:add',          '#', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
values('轮挡台账修改', @parentId, '3',  '#',  'F', '0', 'manage:ledger_rfid:edit',         '#', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
values('轮挡台账删除', @parentId, '4',  '#',  'F', '0', 'manage:ledger_rfid:remove',       '#', 'admin', sysdate(), '', null, '');

insert into sys_menu (menu_name, parent_id, order_num, url, menu_type, visible, perms, icon, create_by, create_time, update_by, update_time, remark)
values('轮挡台账导出', @parentId, '5',  '#',  'F', '0', 'manage:ledger_rfid:export',       '#', 'admin', sysdate(), '', null, '');
