
delete from menu where id=77 or pid = 77;
delete from role_menu where menu_id in (77, 78, 79, 80, 81,82,83);
-- 菜单 new SQL
INSERT INTO menu (id, menu_name, menu_code, pid, app_id, path, component, router_name, icon, menu_type, perms, is_cache, is_frame, visible, remark, create_by, owner_by, create_time, update_by, update_time, is_delete, enabled, sort)
VALUES ( 77,'流失商机', DEFAULT, '69', null, 'lossBusiness', 'business/lossBusiness/index', 'lossBusiness', 'list-check', 1, 'business:lossBusiness:list', 0, 0, false, ' ', 1, 0, sysdate(), null, null, 0, 1, 9);

-- 按钮 new SQL
INSERT INTO menu (id, menu_name, menu_code, pid, app_id, path, component, router_name, icon, menu_type, perms, is_cache, is_frame, visible, remark, create_by, owner_by, create_time, update_by, update_time, is_delete, enabled, sort)
VALUES (79, '成交商机查询', DEFAULT, 77, null, '', '', '', null, 3, 'business:lossBusiness:query', 0, 0, false, ' ', 1, 0, sysdate(), null, null, 0, 1, 1);


INSERT INTO menu (id, menu_name, menu_code, pid, app_id, path, component, router_name, icon, menu_type, perms, is_cache, is_frame, visible, remark, create_by, owner_by, create_time, update_by, update_time, is_delete, enabled, sort)
VALUES (80, '成交商机新增', DEFAULT, 77, null, '', '', '', null, 3, 'business:lossBusiness:add', 0, 0, false, ' ', 1, 0, sysdate(), null, null, 0, 1, 1);

INSERT INTO menu (id, menu_name, menu_code, pid, app_id, path, component, router_name, icon, menu_type, perms, is_cache, is_frame, visible, remark, create_by, owner_by, create_time, update_by, update_time, is_delete, enabled, sort)
VALUES (81, '成交商机修改', DEFAULT, 77, null, '', '', '', null, 3, 'business:lossBusiness:edit', 0, 0, false, ' ', 1, 0, sysdate(), null, null, 0, 1, 1);


INSERT INTO menu (id, menu_name, menu_code, pid, app_id, path, component, router_name, icon, menu_type, perms, is_cache, is_frame, visible, remark, create_by, owner_by, create_time, update_by, update_time, is_delete, enabled, sort)
VALUES (82, '成交商机删除', DEFAULT, 77, null, '', '', '', null, 3, 'business:lossBusiness:remove', 0, 0, false, ' ', 1, 0, sysdate(), null, null, 0, 1, 1);


INSERT INTO menu (id, menu_name, menu_code, pid, app_id, path, component, router_name, icon, menu_type, perms, is_cache, is_frame, visible, remark, create_by, owner_by, create_time, update_by, update_time, is_delete, enabled, sort)
VALUES (83, '成交商机导出', DEFAULT, 77, null, '', '', '', null, 3, 'business:lossBusiness:export', 0, 0, false, ' ', 1, 0, sysdate(), null, null, 0, 1, 1);

-- business:${props.perPrefix}:zysjlist




insert into role_menu (is_delete, role_id, sort, update_time, menu_id, create_by, create_time, update_by, enabled)
values (0, 1, 1, null, 77, 1, sysdate(), null, 0);
insert into role_menu (is_delete, role_id, sort, update_time, menu_id, create_by, create_time, update_by, enabled)
values (0, 1, 1, null, 79, 1, sysdate(), null, 0);
insert into role_menu (is_delete, role_id, sort, update_time, menu_id, create_by, create_time, update_by, enabled)
values (0, 1, 1, null, 80, 1, sysdate(), null, 0);
insert into role_menu (is_delete, role_id, sort, update_time, menu_id, create_by, create_time, update_by, enabled)
values (0, 1, 1, null, 81, 1, sysdate(), null, 0);
insert into role_menu (is_delete, role_id, sort, update_time, menu_id, create_by, create_time, update_by, enabled)
values (0, 1, 1, null, 82, 1, sysdate(), null, 0);
insert into role_menu (is_delete, role_id, sort, update_time, menu_id, create_by, create_time, update_by, enabled)
values (0, 1, 1, null, 83, 1, sysdate(), null, 0);
