-- =====================================================================
-- 订餐管理后台菜单与按钮权限初始化
--   一级目录：订餐管理
--   二级菜单：美食门店、菜品管理、套餐管理、订餐服务区域、订餐规则、菜单模板、订餐菜单、订餐订单、美食预订、订餐统计
--   幂等：INSERT ... NOT EXISTS / UPDATE，可重复执行
--   所属子应用：2064599012230459394
-- =====================================================================

-- 1) 一级目录：订餐管理
INSERT INTO sys_menu_info (
    id, create_by, create_date, update_by, update_date, remarks, del_flag, organize_id, tenant_id, tenant_code,
    sort_num, menu_name, menu_short_name, menu_path, target, menu_parent_ids, menu_parent_id, menu_icon, is_show,
    permission, menu_type, tip, subsystem_id, category, class_path, component, verification
)
SELECT '2005000000000000000', '1', NOW(), '1', NOW(), NULL, '0', NULL, '1', '1',
    30, '订餐管理', '订餐管理', '/business/food', '', '0,', '0', 'Bowl', '1',
    '', '1', '', '2064599012230459394', 'WEB', '', '', '0'
FROM dual
WHERE NOT EXISTS (SELECT 1 FROM sys_menu_info WHERE id = '2005000000000000000');

UPDATE sys_menu_info
   SET menu_name = '订餐管理', menu_short_name = '订餐管理',
       menu_path = '/business/food', component = '',
       menu_parent_id = '0', menu_parent_ids = '0,',
       menu_icon = 'Bowl', sort_num = 30, menu_type = '1',
       is_show = '1', permission = '', del_flag = '0', update_by = '1', update_date = NOW()
 WHERE id = '2005000000000000000';

-- 2) 二级菜单：美食门店
INSERT INTO sys_menu_info (
    id, create_by, create_date, update_by, update_date, remarks, del_flag, organize_id, tenant_id, tenant_code,
    sort_num, menu_name, menu_short_name, menu_path, target, menu_parent_ids, menu_parent_id, menu_icon, is_show,
    permission, menu_type, tip, subsystem_id, category, class_path, component, verification
)
SELECT '2005000000000000010', '1', NOW(), '1', NOW(), NULL, '0', NULL, '1', '1',
    10, '美食门店', '美食门店', '/business/food/restaurant', '', '0,2005000000000000000,', '2005000000000000000', 'Shop', '1',
    '', '2', '', '2064599012230459394', 'WEB', '', 'business/views/food/restaurant/index', '0'
FROM dual
WHERE NOT EXISTS (SELECT 1 FROM sys_menu_info WHERE id = '2005000000000000010');

UPDATE sys_menu_info
   SET menu_name = '美食门店', menu_short_name = '美食门店',
       menu_path = '/business/food/restaurant', component = 'business/views/food/restaurant/index',
       menu_parent_id = '2005000000000000000', menu_parent_ids = '0,2005000000000000000,',
       menu_icon = 'Shop', sort_num = 10, menu_type = '2',
       is_show = '1', permission = '', del_flag = '0', update_by = '1', update_date = NOW()
 WHERE id = '2005000000000000010';

-- 3) 二级菜单：菜品管理
INSERT INTO sys_menu_info (
    id, create_by, create_date, update_by, update_date, remarks, del_flag, organize_id, tenant_id, tenant_code,
    sort_num, menu_name, menu_short_name, menu_path, target, menu_parent_ids, menu_parent_id, menu_icon, is_show,
    permission, menu_type, tip, subsystem_id, category, class_path, component, verification
)
SELECT '2005000000000000020', '1', NOW(), '1', NOW(), NULL, '0', NULL, '1', '1',
    20, '菜品管理', '菜品管理', '/business/food/dish', '', '0,2005000000000000000,', '2005000000000000000', 'Dish', '1',
    '', '2', '', '2064599012230459394', 'WEB', '', 'business/views/food/dish/index', '0'
FROM dual
WHERE NOT EXISTS (SELECT 1 FROM sys_menu_info WHERE id = '2005000000000000020');

UPDATE sys_menu_info
   SET menu_name = '菜品管理', menu_short_name = '菜品管理',
       menu_path = '/business/food/dish', component = 'business/views/food/dish/index',
       menu_parent_id = '2005000000000000000', menu_parent_ids = '0,2005000000000000000,',
       menu_icon = 'Dish', sort_num = 20, menu_type = '2',
       is_show = '1', permission = '', del_flag = '0', update_by = '1', update_date = NOW()
 WHERE id = '2005000000000000020';

-- 4) 二级菜单：套餐管理
INSERT INTO sys_menu_info (
    id, create_by, create_date, update_by, update_date, remarks, del_flag, organize_id, tenant_id, tenant_code,
    sort_num, menu_name, menu_short_name, menu_path, target, menu_parent_ids, menu_parent_id, menu_icon, is_show,
    permission, menu_type, tip, subsystem_id, category, class_path, component, verification
)
SELECT '2005000000000000030', '1', NOW(), '1', NOW(), NULL, '0', NULL, '1', '1',
    30, '套餐管理', '套餐管理', '/business/food/package', '', '0,2005000000000000000,', '2005000000000000000', 'Goods', '1',
    '', '2', '', '2064599012230459394', 'WEB', '', 'business/views/food/package/index', '0'
FROM dual
WHERE NOT EXISTS (SELECT 1 FROM sys_menu_info WHERE id = '2005000000000000030');

UPDATE sys_menu_info
   SET menu_name = '套餐管理', menu_short_name = '套餐管理',
       menu_path = '/business/food/package', component = 'business/views/food/package/index',
       menu_parent_id = '2005000000000000000', menu_parent_ids = '0,2005000000000000000,',
       menu_icon = 'Goods', sort_num = 30, menu_type = '2',
       is_show = '1', permission = '', del_flag = '0', update_by = '1', update_date = NOW()
 WHERE id = '2005000000000000030';

-- 5) 二级菜单：订餐规则
INSERT INTO sys_menu_info (
    id, create_by, create_date, update_by, update_date, remarks, del_flag, organize_id, tenant_id, tenant_code,
    sort_num, menu_name, menu_short_name, menu_path, target, menu_parent_ids, menu_parent_id, menu_icon, is_show,
    permission, menu_type, tip, subsystem_id, category, class_path, component, verification
)
SELECT '2005000000000000040', '1', NOW(), '1', NOW(), NULL, '0', NULL, '1', '1',
    40, '订餐规则', '订餐规则', '/business/food/mealRule', '', '0,2005000000000000000,', '2005000000000000000', 'Setting', '1',
    '', '2', '', '2064599012230459394', 'WEB', '', 'business/views/food/mealRule/index', '0'
FROM dual
WHERE NOT EXISTS (SELECT 1 FROM sys_menu_info WHERE id = '2005000000000000040');

UPDATE sys_menu_info
   SET menu_name = '订餐规则', menu_short_name = '订餐规则',
       menu_path = '/business/food/mealRule', component = 'business/views/food/mealRule/index',
       menu_parent_id = '2005000000000000000', menu_parent_ids = '0,2005000000000000000,',
       menu_icon = 'Setting', sort_num = 40, menu_type = '2',
       is_show = '1', permission = '', del_flag = '0', update_by = '1', update_date = NOW()
 WHERE id = '2005000000000000040';

-- 6) 二级菜单：订餐菜单
INSERT INTO sys_menu_info (
    id, create_by, create_date, update_by, update_date, remarks, del_flag, organize_id, tenant_id, tenant_code,
    sort_num, menu_name, menu_short_name, menu_path, target, menu_parent_ids, menu_parent_id, menu_icon, is_show,
    permission, menu_type, tip, subsystem_id, category, class_path, component, verification
)
SELECT '2005000000000000050', '1', NOW(), '1', NOW(), NULL, '0', NULL, '1', '1',
    50, '订餐菜单', '订餐菜单', '/business/food/mealMenu', '', '0,2005000000000000000,', '2005000000000000000', 'Menu', '1',
    '', '2', '', '2064599012230459394', 'WEB', '', 'business/views/food/mealMenu/index', '0'
FROM dual
WHERE NOT EXISTS (SELECT 1 FROM sys_menu_info WHERE id = '2005000000000000050');

UPDATE sys_menu_info
   SET menu_name = '订餐菜单', menu_short_name = '订餐菜单',
       menu_path = '/business/food/mealMenu', component = 'business/views/food/mealMenu/index',
       menu_parent_id = '2005000000000000000', menu_parent_ids = '0,2005000000000000000,',
       menu_icon = 'Menu', sort_num = 50, menu_type = '2',
       is_show = '1', permission = '', del_flag = '0', update_by = '1', update_date = NOW()
 WHERE id = '2005000000000000050';

-- 7) 二级菜单：订餐订单
INSERT INTO sys_menu_info (
    id, create_by, create_date, update_by, update_date, remarks, del_flag, organize_id, tenant_id, tenant_code,
    sort_num, menu_name, menu_short_name, menu_path, target, menu_parent_ids, menu_parent_id, menu_icon, is_show,
    permission, menu_type, tip, subsystem_id, category, class_path, component, verification
)
SELECT '2005000000000000060', '1', NOW(), '1', NOW(), NULL, '0', NULL, '1', '1',
    60, '订餐订单', '订餐订单', '/business/food/mealOrder', '', '0,2005000000000000000,', '2005000000000000000', 'Tickets', '1',
    '', '2', '', '2064599012230459394', 'WEB', '', 'business/views/food/mealOrder/index', '0'
FROM dual
WHERE NOT EXISTS (SELECT 1 FROM sys_menu_info WHERE id = '2005000000000000060');

UPDATE sys_menu_info
   SET menu_name = '订餐订单', menu_short_name = '订餐订单',
       menu_path = '/business/food/mealOrder', component = 'business/views/food/mealOrder/index',
       menu_parent_id = '2005000000000000000', menu_parent_ids = '0,2005000000000000000,',
       menu_icon = 'Tickets', sort_num = 60, menu_type = '2',
       is_show = '1', permission = '', del_flag = '0', update_by = '1', update_date = NOW()
 WHERE id = '2005000000000000060';

-- 8) 二级菜单：美食预订
INSERT INTO sys_menu_info (
    id, create_by, create_date, update_by, update_date, remarks, del_flag, organize_id, tenant_id, tenant_code,
    sort_num, menu_name, menu_short_name, menu_path, target, menu_parent_ids, menu_parent_id, menu_icon, is_show,
    permission, menu_type, tip, subsystem_id, category, class_path, component, verification
)
SELECT '2005000000000000070', '1', NOW(), '1', NOW(), NULL, '0', NULL, '1', '1',
    70, '美食预订', '美食预订', '/business/food/booking', '', '0,2005000000000000000,', '2005000000000000000', 'Calendar', '1',
    '', '2', '', '2064599012230459394', 'WEB', '', 'business/views/food/booking/index', '0'
FROM dual
WHERE NOT EXISTS (SELECT 1 FROM sys_menu_info WHERE id = '2005000000000000070');

UPDATE sys_menu_info
   SET menu_name = '美食预订', menu_short_name = '美食预订',
       menu_path = '/business/food/booking', component = 'business/views/food/booking/index',
       menu_parent_id = '2005000000000000000', menu_parent_ids = '0,2005000000000000000,',
       menu_icon = 'Calendar', sort_num = 70, menu_type = '2',
       is_show = '1', permission = '', del_flag = '0', update_by = '1', update_date = NOW()
 WHERE id = '2005000000000000070';

-- 9) 二级菜单：订餐统计
INSERT INTO sys_menu_info (
    id, create_by, create_date, update_by, update_date, remarks, del_flag, organize_id, tenant_id, tenant_code,
    sort_num, menu_name, menu_short_name, menu_path, target, menu_parent_ids, menu_parent_id, menu_icon, is_show,
    permission, menu_type, tip, subsystem_id, category, class_path, component, verification
)
SELECT '2005000000000000080', '1', NOW(), '1', NOW(), NULL, '0', NULL, '1', '1',
    80, '订餐统计', '订餐统计', '/business/food/statistics', '', '0,2005000000000000000,', '2005000000000000000', 'DataAnalysis', '1',
    '', '2', '', '2064599012230459394', 'WEB', '', 'business/views/food/statistics/index', '0'
FROM dual
WHERE NOT EXISTS (SELECT 1 FROM sys_menu_info WHERE id = '2005000000000000080');

UPDATE sys_menu_info
   SET menu_name = '订餐统计', menu_short_name = '订餐统计',
       menu_path = '/business/food/statistics', component = 'business/views/food/statistics/index',
       menu_parent_id = '2005000000000000000', menu_parent_ids = '0,2005000000000000000,',
       menu_icon = 'DataAnalysis', sort_num = 80, menu_type = '2',
       is_show = '1', permission = '', del_flag = '0', update_by = '1', update_date = NOW()
 WHERE id = '2005000000000000080';

-- 10) 按钮权限：美食门店
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001011', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:restaurant:list', '列表', '1', '2005000000000000010', 10, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001011');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001012', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:restaurant:info', '详情', '1', '2005000000000000010', 20, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001012');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001013', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:restaurant:create', '新增', '1', '2005000000000000010', 30, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001013');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001014', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:restaurant:update', '修改', '1', '2005000000000000010', 40, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001014');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001015', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:restaurant:save', '保存', '1', '2005000000000000010', 50, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001015');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001016', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:restaurant:delete', '删除', '1', '2005000000000000010', 60, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001016');

-- 11) 按钮权限：菜品管理
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001021', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:dish:list', '列表', '1', '2005000000000000020', 10, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001021');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001022', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:dish:info', '详情', '1', '2005000000000000020', 20, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001022');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001023', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:dish:create', '新增', '1', '2005000000000000020', 30, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001023');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001024', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:dish:update', '修改/启停', '1', '2005000000000000020', 40, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001024');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001025', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:dish:save', '保存', '1', '2005000000000000020', 50, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001025');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001026', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:dish:delete', '删除', '1', '2005000000000000020', 60, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001026');

-- 12) 按钮权限：套餐管理
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001031', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:package:list', '列表', '1', '2005000000000000030', 10, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001031');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001032', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:package:info', '详情', '1', '2005000000000000030', 20, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001032');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001033', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:package:create', '新增', '1', '2005000000000000030', 30, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001033');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001034', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:package:update', '修改', '1', '2005000000000000030', 40, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001034');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001035', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:package:save', '保存', '1', '2005000000000000030', 50, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001035');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001036', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:package:delete', '删除', '1', '2005000000000000030', 60, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001036');

-- 13) 按钮权限：订餐规则
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001041', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealRule:list', '列表', '1', '2005000000000000040', 10, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001041');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001042', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealRule:info', '详情', '1', '2005000000000000040', 20, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001042');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001043', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealRule:create', '新增', '1', '2005000000000000040', 30, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001043');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001044', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealRule:update', '修改/启停', '1', '2005000000000000040', 40, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001044');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001045', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealRule:save', '保存', '1', '2005000000000000040', 50, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001045');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001046', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealRule:delete', '删除', '1', '2005000000000000040', 60, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001046');

-- 14) 按钮权限：订餐菜单
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001051', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealMenu:list', '列表', '1', '2005000000000000050', 10, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001051');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001052', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealMenu:info', '详情', '1', '2005000000000000050', 20, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001052');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001053', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealMenu:create', '新增', '1', '2005000000000000050', 30, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001053');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001054', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealMenu:update', '修改', '1', '2005000000000000050', 40, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001054');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001055', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealMenu:save', '保存', '1', '2005000000000000050', 50, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001055');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001056', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealMenu:publish', '发布', '1', '2005000000000000050', 60, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001056');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001057', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealMenu:offline', '下线', '1', '2005000000000000050', 70, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001057');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001058', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealMenu:delete', '删除', '1', '2005000000000000050', 80, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001058');

-- 15) 按钮权限：订餐订单
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001061', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealOrder:list', '列表', '1', '2005000000000000060', 10, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001061');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001062', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealOrder:refund', '退款', '1', '2005000000000000060', 20, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001062');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001063', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealOrder:verify', '核销', '1', '2005000000000000060', 30, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001063');

-- 16) 按钮权限：美食预订
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001071', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:booking:list', '列表', '1', '2005000000000000070', 10, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001071');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001072', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:booking:info', '详情', '1', '2005000000000000070', 20, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001072');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001073', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:booking:create', '新增', '1', '2005000000000000070', 30, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001073');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001074', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:booking:update', '修改', '1', '2005000000000000070', 40, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001074');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001075', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:booking:save', '保存/退款', '1', '2005000000000000070', 50, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001075');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001076', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:booking:verify', '核销', '1', '2005000000000000070', 60, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001076');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001077', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:booking:delete', '删除', '1', '2005000000000000070', 70, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001077');

-- 17) 按钮权限：订餐统计
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001081', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:statistics:list', '统计查询', '1', '2005000000000000080', 10, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001081');

-- 18) 二级菜单：订餐服务区域
INSERT INTO sys_menu_info (
    id, create_by, create_date, update_by, update_date, remarks, del_flag, organize_id, tenant_id, tenant_code,
    sort_num, menu_name, menu_short_name, menu_path, target, menu_parent_ids, menu_parent_id, menu_icon, is_show,
    permission, menu_type, tip, subsystem_id, category, class_path, component, verification
)
SELECT '2005000000000000090', '1', NOW(), '1', NOW(), NULL, '0', NULL, '1', '1',
    35, '订餐服务区域', '服务区域', '/business/food/mealServiceArea', '', '0,2005000000000000000,', '2005000000000000000', 'Location', '1',
    '', '2', '', '2064599012230459394', 'WEB', '', 'business/views/food/mealServiceArea/index', '0'
FROM dual
WHERE NOT EXISTS (SELECT 1 FROM sys_menu_info WHERE id = '2005000000000000090');

UPDATE sys_menu_info
   SET menu_name = '订餐服务区域', menu_short_name = '服务区域',
       menu_path = '/business/food/mealServiceArea', component = 'business/views/food/mealServiceArea/index',
       menu_parent_id = '2005000000000000000', menu_parent_ids = '0,2005000000000000000,',
       menu_icon = 'Location', sort_num = 35, menu_type = '2',
       is_show = '1', permission = '', del_flag = '0', update_by = '1', update_date = NOW()
 WHERE id = '2005000000000000090';

-- 19) 二级菜单：菜单模板
INSERT INTO sys_menu_info (
    id, create_by, create_date, update_by, update_date, remarks, del_flag, organize_id, tenant_id, tenant_code,
    sort_num, menu_name, menu_short_name, menu_path, target, menu_parent_ids, menu_parent_id, menu_icon, is_show,
    permission, menu_type, tip, subsystem_id, category, class_path, component, verification
)
SELECT '2005000000000000091', '1', NOW(), '1', NOW(), NULL, '0', NULL, '1', '1',
    45, '菜单模板', '菜单模板', '/business/food/mealMenuTemplate', '', '0,2005000000000000000,', '2005000000000000000', 'Document', '1',
    '', '2', '', '2064599012230459394', 'WEB', '', 'business/views/food/mealMenuTemplate/index', '0'
FROM dual
WHERE NOT EXISTS (SELECT 1 FROM sys_menu_info WHERE id = '2005000000000000091');

UPDATE sys_menu_info
   SET menu_name = '菜单模板', menu_short_name = '菜单模板',
       menu_path = '/business/food/mealMenuTemplate', component = 'business/views/food/mealMenuTemplate/index',
       menu_parent_id = '2005000000000000000', menu_parent_ids = '0,2005000000000000000,',
       menu_icon = 'Document', sort_num = 45, menu_type = '2',
       is_show = '1', permission = '', del_flag = '0', update_by = '1', update_date = NOW()
 WHERE id = '2005000000000000091';

-- 20) 按钮权限：订餐服务区域
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001091', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealServiceArea:list', '列表', '1', '2005000000000000090', 10, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001091');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001092', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealServiceArea:info', '详情', '1', '2005000000000000090', 20, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001092');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001093', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealServiceArea:create', '新增', '1', '2005000000000000090', 30, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001093');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001094', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealServiceArea:update', '修改', '1', '2005000000000000090', 40, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001094');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001095', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealServiceArea:save', '保存', '1', '2005000000000000090', 50, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001095');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001096', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealServiceArea:delete', '删除', '1', '2005000000000000090', 60, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001096');

-- 21) 按钮权限：菜单模板
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001101', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealMenuTemplate:list', '列表', '1', '2005000000000000091', 10, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001101');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001102', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealMenuTemplate:info', '详情', '1', '2005000000000000091', 20, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001102');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001103', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealMenuTemplate:create', '新增', '1', '2005000000000000091', 30, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001103');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001104', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealMenuTemplate:update', '修改/启停', '1', '2005000000000000091', 40, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001104');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001105', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealMenuTemplate:save', '保存', '1', '2005000000000000091', 50, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001105');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001106', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealMenuTemplate:delete', '删除', '1', '2005000000000000091', 60, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001106');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001107', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:mealMenuTemplate:status', '启停', '1', '2005000000000000091', 70, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001107');

-- 22) 二级菜单：订餐企业
INSERT INTO sys_menu_info (
    id, create_by, create_date, update_by, update_date, remarks, del_flag, organize_id, tenant_id, tenant_code,
    sort_num, menu_name, menu_short_name, menu_path, target, menu_parent_ids, menu_parent_id, menu_icon, is_show,
    permission, menu_type, tip, subsystem_id, category, class_path, component, verification
)
SELECT '2005000000000000092', '1', NOW(), '1', NOW(), NULL, '0', NULL, '1', '1',
    25, '订餐企业', '订餐企业', '/business/food/company', '', '0,2005000000000000000,', '2005000000000000000', 'OfficeBuilding', '1',
    '', '2', '', '2064599012230459394', 'WEB', '', 'business/views/food/company/index', '0'
FROM dual
WHERE NOT EXISTS (SELECT 1 FROM sys_menu_info WHERE id = '2005000000000000092');

UPDATE sys_menu_info
   SET menu_name = '订餐企业', menu_short_name = '订餐企业',
       menu_path = '/business/food/company', component = 'business/views/food/company/index',
       menu_parent_id = '2005000000000000000', menu_parent_ids = '0,2005000000000000000,',
       menu_icon = 'OfficeBuilding', sort_num = 25, menu_type = '2',
       is_show = '1', permission = '', del_flag = '0', update_by = '1', update_date = NOW()
 WHERE id = '2005000000000000092';

-- 23) 二级菜单：企业人员
INSERT INTO sys_menu_info (
    id, create_by, create_date, update_by, update_date, remarks, del_flag, organize_id, tenant_id, tenant_code,
    sort_num, menu_name, menu_short_name, menu_path, target, menu_parent_ids, menu_parent_id, menu_icon, is_show,
    permission, menu_type, tip, subsystem_id, category, class_path, component, verification
)
SELECT '2005000000000000093', '1', NOW(), '1', NOW(), NULL, '0', NULL, '1', '1',
    27, '企业人员', '企业人员', '/business/food/companyEmployee', '', '0,2005000000000000000,', '2005000000000000000', 'User', '1',
    '', '2', '', '2064599012230459394', 'WEB', '', 'business/views/food/companyEmployee/index', '0'
FROM dual
WHERE NOT EXISTS (SELECT 1 FROM sys_menu_info WHERE id = '2005000000000000093');

UPDATE sys_menu_info
   SET menu_name = '企业人员', menu_short_name = '企业人员',
       menu_path = '/business/food/companyEmployee', component = 'business/views/food/companyEmployee/index',
       menu_parent_id = '2005000000000000000', menu_parent_ids = '0,2005000000000000000,',
       menu_icon = 'User', sort_num = 27, menu_type = '2',
       is_show = '1', permission = '', del_flag = '0', update_by = '1', update_date = NOW()
 WHERE id = '2005000000000000093';

-- 24) 二级菜单：加入审批
INSERT INTO sys_menu_info (
    id, create_by, create_date, update_by, update_date, remarks, del_flag, organize_id, tenant_id, tenant_code,
    sort_num, menu_name, menu_short_name, menu_path, target, menu_parent_ids, menu_parent_id, menu_icon, is_show,
    permission, menu_type, tip, subsystem_id, category, class_path, component, verification
)
SELECT '2005000000000000094', '1', NOW(), '1', NOW(), NULL, '0', NULL, '1', '1',
    28, '加入审批', '加入审批', '/business/food/companyJoinApply', '', '0,2005000000000000000,', '2005000000000000000', 'Edit', '1',
    '', '2', '', '2064599012230459394', 'WEB', '', 'business/views/food/companyJoinApply/index', '0'
FROM dual
WHERE NOT EXISTS (SELECT 1 FROM sys_menu_info WHERE id = '2005000000000000094');

UPDATE sys_menu_info
   SET menu_name = '加入审批', menu_short_name = '加入审批',
       menu_path = '/business/food/companyJoinApply', component = 'business/views/food/companyJoinApply/index',
       menu_parent_id = '2005000000000000000', menu_parent_ids = '0,2005000000000000000,',
       menu_icon = 'Edit', sort_num = 28, menu_type = '2',
       is_show = '1', permission = '', del_flag = '0', update_by = '1', update_date = NOW()
 WHERE id = '2005000000000000094';

-- 25) 按钮权限：订餐企业
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001111', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:company:list', '列表', '1', '2005000000000000092', 10, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001111');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001112', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:company:info', '详情', '1', '2005000000000000092', 20, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001112');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001113', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:company:search', '搜索', '1', '2005000000000000092', 25, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001113');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001114', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:company:save', '保存', '1', '2005000000000000092', 30, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001114');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001115', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:company:status', '启停', '1', '2005000000000000092', 40, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001115');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001116', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:company:delete', '删除', '1', '2005000000000000092', 50, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001116');

-- 26) 按钮权限：企业人员
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001121', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:companyEmployee:list', '列表', '1', '2005000000000000093', 10, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001121');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001122', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:companyEmployee:info', '详情', '1', '2005000000000000093', 20, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001122');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001123', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:companyEmployee:save', '保存', '1', '2005000000000000093', 30, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001123');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001124', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:companyEmployee:freeze', '冻结', '1', '2005000000000000093', 40, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001124');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001125', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:companyEmployee:restore', '恢复', '1', '2005000000000000093', 50, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001125');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001126', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:companyEmployee:unbind', '解绑', '1', '2005000000000000093', 55, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001126');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001127', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:companyEmployee:delete', '删除', '1', '2005000000000000093', 60, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001127');

-- 27) 按钮权限：加入审批
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001131', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:companyJoinApply:list', '列表', '1', '2005000000000000094', 10, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001131');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001132', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:companyJoinApply:info', '详情', '1', '2005000000000000094', 20, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001132');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001133', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:companyJoinApply:approve', '审批通过', '1', '2005000000000000094', 30, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001133');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001134', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:companyJoinApply:reject', '审批拒绝', '1', '2005000000000000094', 40, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001134');
INSERT INTO sys_menu_button_info (id, create_date, create_by, update_date, update_by, del_flag, tenant_id, tenant_code, button_code, button_name, enable, menu_id, sort_num, sys_data, source)
SELECT '2005000000000001135', NOW(), '1', NOW(), '1', '0', '1', '1', 'manager:business:food:companyJoinApply:delete', '删除', '1', '2005000000000000094', 50, '0', '0'
FROM dual WHERE NOT EXISTS (SELECT 1 FROM sys_menu_button_info WHERE id = '2005000000000001135');
