

-- 菜单 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 (968906923511809, '下属订单', DEFAULT, '70', null, 'subordinate', 'orderForm/subordinate/index', 'subordinate', null, 1, 'orderForm:subordinate:list', 0, 0, false, ' ', 1, 0, sysdate(), null, null, 0, 1, 1);

-- 按钮 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 (968906923511810, '下属订单查询', DEFAULT, 968906923511809, null, '', '', '', null, 3, 'orderForm:subordinate: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 (968906923511811, '下属订单新增', DEFAULT, 968906923511809, null, '', '', '', null, 3, 'orderForm:subordinate: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 (968906923511812, '下属订单修改', DEFAULT, 968906923511809, null, '', '', '', null, 3, 'orderForm:subordinate: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 (968906923511813, '下属订单删除', DEFAULT, 968906923511809, null, '', '', '', null, 3, 'orderForm:subordinate: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 (968906923511814, '下属订单导出', DEFAULT, 968906923511809, null, '', '', '', null, 3, 'orderForm:subordinate:export', 0, 0, false, ' ', 1, 0, sysdate(), null, null, 0, 1, 1);



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, 968906923511809, 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, 968906923511810, 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, 968906923511811, 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, 968906923511812, 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, 968906923511813, 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, 968906923511814, 1, sysdate(), null, 0);

INSERT INTO menu (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 ('下属订单导入', DEFAULT, 968906923511809, null, '', '', '', null, 3, 'orderForm:subordinate:import', 0, 0, false, ' ', 1, 0, sysdate(), null, null, 0, 1, 1);

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, LAST_INSERT_ID(), 1, sysdate(), null, 0);

#列表其他按钮权限
INSERT INTO menu (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 ('下属订单-转移订单', DEFAULT, 968906923511809, null, '', '', '', null, 3, 'orderForm:subordinate:zydd', 0, 0, false, ' ', 1, 0, sysdate(), null, null, 0, 1, 1);
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, LAST_INSERT_ID(), 1, sysdate(), null, 0);

INSERT INTO menu (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 ('下属订单-添加协作', DEFAULT, 968906923511809, null, '', '', '', null, 3, 'orderForm:subordinate:tjxz', 0, 0, false, ' ', 1, 0, sysdate(), null, null, 0, 1, 1);
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, LAST_INSERT_ID(), 1, sysdate(), null, 0);

INSERT INTO menu (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 ('下属订单-新建任务', DEFAULT, 968906923511809, null, '', '', '', null, 3, 'orderForm:subordinate:xjrw', 0, 0, false, ' ', 1, 0, sysdate(), null, null, 0, 1, 1);
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, LAST_INSERT_ID(), 1, sysdate(), null, 0);

INSERT INTO menu (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 ('下属订单-跟进', DEFAULT, 968906923511809, null, '', '', '', null, 3, 'orderForm:subordinate:gj', 0, 0, false, ' ', 1, 0, sysdate(), null, null, 0, 1, 1);
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, LAST_INSERT_ID(), 1, sysdate(), null, 0);

INSERT INTO menu (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 ('下属订单-置顶', DEFAULT, 968906923511809, null, '', '', '', null, 3, 'orderForm:subordinate:zd', 0, 0, false, ' ', 1, 0, sysdate(), null, null, 0, 1, 1);
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, LAST_INSERT_ID(), 1, sysdate(), null, 0);
