-- 菜单 SQL
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, is_visible, perms, icon, create_user, create_time, update_user, update_time, remark, tenant_id)
values('${parentId}', '${functionName}', '${parentMenuId}', '1', '${businessName}', '${moduleName}/${businessName}/index', 0, 0, 'C', '1', '${permissionPrefix}:list', '#', 'admin', '${datetime}', '', null, '${functionName}菜单', '${tenantId}');

-- 按钮 SQL
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, is_visible, perms, icon, create_user, create_time, update_user, update_time, remark, tenant_id)
values('${selectMenuId}', '${functionName}查询', '${parentId}', '1',  '#', '', 0, 0, 'F', '1', '${permissionPrefix}:query',        '#', 'admin', '${datetime}', '', null, '', '${tenantId}');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, is_visible, perms, icon, create_user, create_time, update_user, update_time, remark, tenant_id)
values('${insertMenuId}', '${functionName}新增', '${parentId}', '2',  '#', '', 0, 0, 'F', '1', '${permissionPrefix}:add',          '#', 'admin', '${datetime}', '', null, '', '${tenantId}');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, is_visible, perms, icon, create_user, create_time, update_user, update_time, remark, tenant_id)
values('${updateMenuId}', '${functionName}修改', '${parentId}', '3',  '#', '', 0, 0, 'F', '1', '${permissionPrefix}:edit',         '#', 'admin', '${datetime}', '', null, '', '${tenantId}');

insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, is_visible, perms, icon, create_user, create_time, update_user, update_time, remark, tenant_id)
values('${deleteMenuId}', '${functionName}删除', '${parentId}', '4',  '#', '', 0, 0, 'F', '1', '${permissionPrefix}:remove',       '#', 'admin', '${datetime}', '', null, '', '${tenantId}');

#if($excelFlag)
insert into sys_menu (menu_id, menu_name, parent_id, order_num, path, component, is_frame, is_cache, menu_type, is_visible, perms, icon, create_user, create_time, update_user, update_time, remark, tenant_id)
values('${exportMenuId}', '${functionName}导出', '${parentId}', '5',  '#', '', 0, 0, 'F', '1', '${permissionPrefix}:export',       '#', 'admin', '${datetime}', '', null, '', '${tenantId}');
#end
