

-- 菜单 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 (953037657899010, '全部工单', DEFAULT, '71', null, 'order', 'order/order/index', 'order', null, 1, 'order:order: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 (953037657899011, '全部工单查询', DEFAULT, 953037657899010, null, '', '', '', null, 3, 'order:order: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 (953037657899012, '全部工单新增', DEFAULT, 953037657899010, null, '', '', '', null, 3, 'order:order: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 (953037657899013, '全部工单修改', DEFAULT, 953037657899010, null, '', '', '', null, 3, 'order:order: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 (953037657899014, '全部工单删除', DEFAULT, 953037657899010, null, '', '', '', null, 3, 'order:order: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 (953037657899015, '全部工单导出', DEFAULT, 953037657899010, null, '', '', '', null, 3, 'order:order: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, 953037657899010, 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, 953037657899011, 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, 953037657899012, 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, 953037657899013, 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, 953037657899014, 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, 953037657899015, 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, 953037657899010, null, '', '', '', null, 3, 'order:order: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, 953037657899010, null, '', '', '', null, 3, 'order:order:fpgd', 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, 953037657899010, null, '', '', '', null, 3, 'order:order:xq', 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, 1783036259468427449, null, '', '', '', null, 3, 'order:detail:cxgd', 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, 1783036259468427449, null, '', '', '', null, 3, 'order:detail:wjgd', 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, 1783036259468427449, null, '', '', '', null, 3, 'order:detail:thgd', 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, 1783036259468427449, null, '', '', '', null, 3, 'order:detail:ztrcl', 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, 1783036259468427449, null, '', '', '', null, 3, 'order:detail:bjgd', 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);