-- ----------------------------
-- 1、部门表
-- ----------------------------
drop table if exists sys_dept;
create table sys_dept (
  dept_id           bigint(20)      not null auto_increment    comment '部门id',
  parent_id         bigint(20)      default 0                  comment '父部门id',
  ancestors         varchar(50)     default ''                 comment '祖级列表',
  dept_name         varchar(30)     default ''                 comment '部门名称',
  order_num         int(4)          default 0                  comment '显示顺序',
  leader            varchar(20)     default null               comment '负责人',
  phone             varchar(11)     default null               comment '联系电话',
  email             varchar(50)     default null               comment '邮箱',
  status            char(1)         default '0'                comment '部门状态（0正常 1停用）',
  del_flag          char(1)         default '0'                comment '删除标志（0代表存在 2代表删除）',
  create_by         varchar(64)     default ''                 comment '创建者',
  create_time 	    datetime                                   comment '创建时间',
  update_by         varchar(64)     default ''                 comment '更新者',
  update_time       datetime                                   comment '更新时间',
  primary key (dept_id)
) engine=innodb auto_increment=200 comment = '部门表';

-- ----------------------------
-- 初始化部门数据
-- ----------------------------
insert into sys_dept values(100,  0,   '0',          '公司',   0, '', '13009116578', 'ccczq@qq.com', '0', '0', 'admin', sysdate(), '', null);

-- ----------------------------
-- 2、用户信息表
-- ----------------------------
drop table if exists sys_user;
create table sys_user (
  user_id           bigint(20)      not null auto_increment    comment '用户ID',
  dept_id           bigint(20)      default null               comment '部门ID',
  user_name         varchar(30)     not null                   comment '用户账号',
  nick_name         varchar(30)     not null                   comment '用户昵称',
  user_type         varchar(2)      default '00'               comment '用户类型（00系统用户）',
  email             varchar(50)     default ''                 comment '用户邮箱',
  phonenumber       varchar(11)     default ''                 comment '手机号码',
  sex               char(1)         default '0'                comment '用户性别（0男 1女 2未知）',
  avatar            varchar(100)    default ''                 comment '头像地址',
  password          varchar(100)    default ''                 comment '密码',
  status            char(1)         default '0'                comment '帐号状态（0正常 1停用）',
  del_flag          char(1)         default '0'                comment '删除标志（0代表存在 2代表删除）',
  login_ip          varchar(128)    default ''                 comment '最后登录IP',
  login_date        datetime                                   comment '最后登录时间',
  create_by         varchar(64)     default ''                 comment '创建者',
  create_time       datetime                                   comment '创建时间',
  update_by         varchar(64)     default ''                 comment '更新者',
  update_time       datetime                                   comment '更新时间',
  remark            varchar(500)    default null               comment '备注',
  primary key (user_id)
) engine=innodb auto_increment=100 comment = '用户信息表';

-- ----------------------------
-- 初始化-用户信息表数据
-- ----------------------------
insert into sys_user values(1,  100, 'admin', '管理员', '00', '', '', '1', '', '$2a$10$RlwM.3JinlC279jp.IRrve90T8OBuGgbnUcrAtEu1HlRbwYDWMbde', '0', '0', '127.0.0.1', sysdate(), 'admin', sysdate(), '', null, '管理员');


-- ----------------------------
-- 3、岗位信息表
-- ----------------------------
drop table if exists sys_post;
create table sys_post
(
  post_id       bigint(20)      not null auto_increment    comment '岗位ID',
  post_code     varchar(64)     not null                   comment '岗位编码',
  post_name     varchar(50)     not null                   comment '岗位名称',
  post_sort     int(4)          not null                   comment '显示顺序',
  status        char(1)         not null                   comment '状态（0正常 1停用）',
  create_by     varchar(64)     default ''                 comment '创建者',
  create_time   datetime                                   comment '创建时间',
  update_by     varchar(64)     default ''			       comment '更新者',
  update_time   datetime                                   comment '更新时间',
  remark        varchar(500)    default null               comment '备注',
  primary key (post_id)
) engine=innodb comment = '岗位信息表';

-- ----------------------------
-- 初始化-岗位信息表数据
-- ----------------------------
insert into sys_post values(1, 'ceo',  '董事长',    1, '0', 'admin', sysdate(), '', null, '');
insert into sys_post values(2, 'se',   '项目经理',  2, '0', 'admin', sysdate(), '', null, '');
insert into sys_post values(3, 'hr',   '人力资源',  3, '0', 'admin', sysdate(), '', null, '');
insert into sys_post values(4, 'user', '普通员工',  4, '0', 'admin', sysdate(), '', null, '');


-- ----------------------------
-- 4、角色信息表
-- ----------------------------
drop table if exists sys_role;
create table sys_role (
  role_id              bigint(20)      not null auto_increment    comment '角色ID',
  role_name            varchar(30)     not null                   comment '角色名称',
  role_key             varchar(100)    not null                   comment '角色权限字符串',
  role_sort            int(4)          not null                   comment '显示顺序',
  data_scope           char(1)         default '1'                comment '数据范围（1：全部数据权限 2：自定数据权限 3：本部门数据权限 4：本部门及以下数据权限）',
  menu_check_strictly  tinyint(1)      default 1                  comment '菜单树选择项是否关联显示',
  dept_check_strictly  tinyint(1)      default 1                  comment '部门树选择项是否关联显示',
  status               char(1)         not null                   comment '角色状态（0正常 1停用）',
  del_flag             char(1)         default '0'                comment '删除标志（0代表存在 2代表删除）',
  create_by            varchar(64)     default ''                 comment '创建者',
  create_time          datetime                                   comment '创建时间',
  update_by            varchar(64)     default ''                 comment '更新者',
  update_time          datetime                                   comment '更新时间',
  remark               varchar(500)    default null               comment '备注',
  primary key (role_id)
) engine=innodb auto_increment=100 comment = '角色信息表';

-- ----------------------------
-- 初始化-角色信息表数据
-- ----------------------------
insert into sys_role values('1', '超级管理员',  'admin',  1, 1, 1, 1, '0', '0', 'admin', sysdate(), '', null, '超级管理员');
insert into sys_role values('2', '普通角色',    'common', 2, 2, 1, 1, '0', '0', 'admin', sysdate(), '', null, '普通角色');


-- ----------------------------
-- 5、菜单权限表
-- ----------------------------
drop table if exists sys_menu;
create table sys_menu (
  menu_id           bigint(20)      not null auto_increment    comment '菜单ID',
  menu_name         varchar(50)     not null                   comment '菜单名称',
  parent_id         bigint(20)      default 0                  comment '父菜单ID',
  order_num         int(4)          default 0                  comment '显示顺序',
  path              varchar(200)    default ''                 comment '路由地址',
  component         varchar(255)    default null               comment '组件路径',
  query             varchar(255)    default null               comment '路由参数',
  is_frame          int(1)          default 1                  comment '是否为外链（0是 1否）',
  is_cache          int(1)          default 0                  comment '是否缓存（0缓存 1不缓存）',
  menu_type         char(1)         default ''                 comment '菜单类型（M目录 C菜单 F按钮）',
  visible           char(1)         default 0                  comment '菜单状态（0显示 1隐藏）',
  status            char(1)         default 0                  comment '菜单状态（0正常 1停用）',
  perms             varchar(100)    default null               comment '权限标识',
  icon              varchar(100)    default '#'                comment '菜单图标',
  create_by         varchar(64)     default ''                 comment '创建者',
  create_time       datetime                                   comment '创建时间',
  update_by         varchar(64)     default ''                 comment '更新者',
  update_time       datetime                                   comment '更新时间',
  remark            varchar(500)    default ''                 comment '备注',
  primary key (menu_id)
) engine=innodb auto_increment=2000 comment = '菜单权限表';

-- ----------------------------
-- 初始化-菜单信息表数据
-- ----------------------------
-- 一级菜单
insert into sys_menu values('1', '系统管理', '0', '1', 'system',           null, '', 1, 0, 'M', '0', '0', '', 'system',   'admin', sysdate(), '', null, '系统管理目录');
insert into sys_menu values('2', '系统监控', '0', '2', 'monitor',          null, '', 1, 0, 'M', '0', '0', '', 'monitor',  'admin', sysdate(), '', null, '系统监控目录');
-- 二级菜单
insert into sys_menu values('100',  '用户管理', '1',   '1', 'user',       'system/user/index',        '', 1, 0, 'C', '0', '0', 'system:user:list',        'user',          'admin', sysdate(), '', null, '用户管理菜单');
insert into sys_menu values('101',  '角色管理', '1',   '2', 'role',       'system/role/index',        '', 1, 0, 'C', '0', '0', 'system:role:list',        'peoples',       'admin', sysdate(), '', null, '角色管理菜单');
insert into sys_menu values('102',  '菜单管理', '1',   '3', 'menu',       'system/menu/index',        '', 1, 0, 'C', '0', '0', 'system:menu:list',        'tree-table',    'admin', sysdate(), '', null, '菜单管理菜单');
insert into sys_menu values('103',  '部门管理', '1',   '4', 'dept',       'system/dept/index',        '', 1, 0, 'C', '0', '0', 'system:dept:list',        'tree',          'admin', sysdate(), '', null, '部门管理菜单');
insert into sys_menu values('104',  '岗位管理', '1',   '5', 'post',       'system/post/index',        '', 1, 0, 'C', '0', '0', 'system:post:list',        'post',          'admin', sysdate(), '', null, '岗位管理菜单');
insert into sys_menu values('105',  '字典管理', '1',   '6', 'dict',       'system/dict/index',        '', 1, 0, 'C', '0', '0', 'system:dict:list',        'dict',          'admin', sysdate(), '', null, '字典管理菜单');
insert into sys_menu values('106',  '参数设置', '1',   '7', 'config',     'system/config/index',      '', 1, 0, 'C', '0', '0', 'system:config:list',      'edit',          'admin', sysdate(), '', null, '参数设置菜单');
insert into sys_menu values('107',  '通知公告', '1',   '8', 'notice',     'system/notice/index',      '', 1, 0, 'C', '0', '0', 'system:notice:list',      'message',       'admin', sysdate(), '', null, '通知公告菜单');
insert into sys_menu values('108',  '日志管理', '1',   '9', 'log',        '',                         '', 1, 0, 'M', '0', '0', '',                        'log',           'admin', sysdate(), '', null, '日志管理菜单');
insert into sys_menu values('109',  '在线用户', '2',   '1', 'online',     'monitor/online/index',     '', 1, 0, 'C', '0', '0', 'monitor:online:list',     'online',        'admin', sysdate(), '', null, '在线用户菜单');
insert into sys_menu values('110',  '定时任务', '2',   '2', 'job',        'monitor/job/index',        '', 1, 0, 'C', '0', '0', 'monitor:job:list',        'job',           'admin', sysdate(), '', null, '定时任务菜单');
insert into sys_menu values('111',  '数据监控', '2',   '3', 'druid',      'monitor/druid/index',      '', 1, 0, 'C', '0', '0', 'monitor:druid:list',      'druid',         'admin', sysdate(), '', null, '数据监控菜单');
insert into sys_menu values('112',  '服务监控', '2',   '4', 'server',     'monitor/server/index',     '', 1, 0, 'C', '0', '0', 'monitor:server:list',     'server',        'admin', sysdate(), '', null, '服务监控菜单');
insert into sys_menu values('113',  '缓存监控', '2',   '5', 'cache',      'monitor/cache/index',      '', 1, 0, 'C', '0', '0', 'monitor:cache:list',      'redis',         'admin', sysdate(), '', null, '缓存监控菜单');
insert into sys_menu values('114',  '缓存列表', '2',   '6', 'cacheList',  'monitor/cache/list',       '', 1, 0, 'C', '0', '0', 'monitor:cache:list',      'redis-list',    'admin', sysdate(), '', null, '缓存列表菜单');
-- 三级菜单
insert into sys_menu values('500',  '操作日志', '108', '1', 'operlog',    'monitor/operlog/index',    '', 1, 0, 'C', '0', '0', 'monitor:operlog:list',    'form',          'admin', sysdate(), '', null, '操作日志菜单');
insert into sys_menu values('501',  '登录日志', '108', '2', 'logininfor', 'monitor/logininfor/index', '', 1, 0, 'C', '0', '0', 'monitor:logininfor:list', 'logininfor',    'admin', sysdate(), '', null, '登录日志菜单');
-- 用户管理按钮
insert into sys_menu values('1000', '用户查询', '100', '1',  '', '', '', 1, 0, 'F', '0', '0', 'system:user:query',          '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1001', '用户新增', '100', '2',  '', '', '', 1, 0, 'F', '0', '0', 'system:user:add',            '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1002', '用户修改', '100', '3',  '', '', '', 1, 0, 'F', '0', '0', 'system:user:edit',           '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1003', '用户删除', '100', '4',  '', '', '', 1, 0, 'F', '0', '0', 'system:user:remove',         '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1004', '用户导出', '100', '5',  '', '', '', 1, 0, 'F', '0', '0', 'system:user:export',         '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1005', '用户导入', '100', '6',  '', '', '', 1, 0, 'F', '0', '0', 'system:user:import',         '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1006', '重置密码', '100', '7',  '', '', '', 1, 0, 'F', '0', '0', 'system:user:resetPwd',       '#', 'admin', sysdate(), '', null, '');
-- 角色管理按钮
insert into sys_menu values('1007', '角色查询', '101', '1',  '', '', '', 1, 0, 'F', '0', '0', 'system:role:query',          '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1008', '角色新增', '101', '2',  '', '', '', 1, 0, 'F', '0', '0', 'system:role:add',            '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1009', '角色修改', '101', '3',  '', '', '', 1, 0, 'F', '0', '0', 'system:role:edit',           '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1010', '角色删除', '101', '4',  '', '', '', 1, 0, 'F', '0', '0', 'system:role:remove',         '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1011', '角色导出', '101', '5',  '', '', '', 1, 0, 'F', '0', '0', 'system:role:export',         '#', 'admin', sysdate(), '', null, '');
-- 菜单管理按钮
insert into sys_menu values('1012', '菜单查询', '102', '1',  '', '', '', 1, 0, 'F', '0', '0', 'system:menu:query',          '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1013', '菜单新增', '102', '2',  '', '', '', 1, 0, 'F', '0', '0', 'system:menu:add',            '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1014', '菜单修改', '102', '3',  '', '', '', 1, 0, 'F', '0', '0', 'system:menu:edit',           '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1015', '菜单删除', '102', '4',  '', '', '', 1, 0, 'F', '0', '0', 'system:menu:remove',         '#', 'admin', sysdate(), '', null, '');
-- 部门管理按钮
insert into sys_menu values('1016', '部门查询', '103', '1',  '', '', '', 1, 0, 'F', '0', '0', 'system:dept:query',          '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1017', '部门新增', '103', '2',  '', '', '', 1, 0, 'F', '0', '0', 'system:dept:add',            '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1018', '部门修改', '103', '3',  '', '', '', 1, 0, 'F', '0', '0', 'system:dept:edit',           '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1019', '部门删除', '103', '4',  '', '', '', 1, 0, 'F', '0', '0', 'system:dept:remove',         '#', 'admin', sysdate(), '', null, '');
-- 岗位管理按钮
insert into sys_menu values('1020', '岗位查询', '104', '1',  '', '', '', 1, 0, 'F', '0', '0', 'system:post:query',          '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1021', '岗位新增', '104', '2',  '', '', '', 1, 0, 'F', '0', '0', 'system:post:add',            '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1022', '岗位修改', '104', '3',  '', '', '', 1, 0, 'F', '0', '0', 'system:post:edit',           '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1023', '岗位删除', '104', '4',  '', '', '', 1, 0, 'F', '0', '0', 'system:post:remove',         '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1024', '岗位导出', '104', '5',  '', '', '', 1, 0, 'F', '0', '0', 'system:post:export',         '#', 'admin', sysdate(), '', null, '');
-- 字典管理按钮
insert into sys_menu values('1025', '字典查询', '105', '1', '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:query',          '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1026', '字典新增', '105', '2', '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:add',            '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1027', '字典修改', '105', '3', '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:edit',           '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1028', '字典删除', '105', '4', '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:remove',         '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1029', '字典导出', '105', '5', '#', '', '', 1, 0, 'F', '0', '0', 'system:dict:export',         '#', 'admin', sysdate(), '', null, '');
-- 参数设置按钮
insert into sys_menu values('1030', '参数查询', '106', '1', '#', '', '', 1, 0, 'F', '0', '0', 'system:config:query',        '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1031', '参数新增', '106', '2', '#', '', '', 1, 0, 'F', '0', '0', 'system:config:add',          '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1032', '参数修改', '106', '3', '#', '', '', 1, 0, 'F', '0', '0', 'system:config:edit',         '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1033', '参数删除', '106', '4', '#', '', '', 1, 0, 'F', '0', '0', 'system:config:remove',       '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1034', '参数导出', '106', '5', '#', '', '', 1, 0, 'F', '0', '0', 'system:config:export',       '#', 'admin', sysdate(), '', null, '');
-- 通知公告按钮
insert into sys_menu values('1035', '公告查询', '107', '1', '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:query',        '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1036', '公告新增', '107', '2', '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:add',          '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1037', '公告修改', '107', '3', '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:edit',         '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1038', '公告删除', '107', '4', '#', '', '', 1, 0, 'F', '0', '0', 'system:notice:remove',       '#', 'admin', sysdate(), '', null, '');
-- 操作日志按钮
insert into sys_menu values('1039', '操作查询', '500', '1', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:query',      '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1040', '操作删除', '500', '2', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:remove',     '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1041', '日志导出', '500', '3', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:operlog:export',     '#', 'admin', sysdate(), '', null, '');
-- 登录日志按钮
insert into sys_menu values('1042', '登录查询', '501', '1', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:query',   '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1043', '登录删除', '501', '2', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:remove',  '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1044', '日志导出', '501', '3', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:export',  '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1045', '账户解锁', '501', '4', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:logininfor:unlock',  '#', 'admin', sysdate(), '', null, '');
-- 在线用户按钮
insert into sys_menu values('1046', '在线查询', '109', '1', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:online:query',       '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1047', '批量强退', '109', '2', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:online:batchLogout', '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1048', '单条强退', '109', '3', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:online:forceLogout', '#', 'admin', sysdate(), '', null, '');
-- 定时任务按钮
insert into sys_menu values('1049', '任务查询', '110', '1', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:query',          '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1050', '任务新增', '110', '2', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:add',            '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1051', '任务修改', '110', '3', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:edit',           '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1052', '任务删除', '110', '4', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:remove',         '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1053', '状态修改', '110', '5', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:changeStatus',   '#', 'admin', sysdate(), '', null, '');
insert into sys_menu values('1054', '任务导出', '110', '6', '#', '', '', 1, 0, 'F', '0', '0', 'monitor:job:export',         '#', 'admin', sysdate(), '', null, '');

-- ----------------------------
-- 功能菜单
-- ----------------------------
-- 首页
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('首页', 0, 0, '-', NULL, NULL, 1, 0, 'M', '1', '1', '', 'dashboard', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level1 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('快捷菜单', @new_id_level1, 1, '-', NULL, NULL, 1, 0, 'C', '0', '0', 'homePage:shortcutMenu', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('快捷菜单查询', @new_id_level2, 0, '', NULL, NULL, 1, 0, 'F', '0', '0', 'set:desktopItem:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('快捷菜单新增', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'set:desktopItem:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('快捷菜单修改', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'set:desktopItem:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('快捷菜单删除', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'set:desktopItem:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();

-- 系统设置
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('系统设置', 0, 4, 'set', NULL, NULL, 1, 0, 'M', '0', '0', '', 'dict', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level1 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('MES编码', @new_id_level1, 7, 'autocodeRule', 'system/autocode/index', NULL, 1, 0, 'C', '0', '0', 'system:autocode:rule', 'code', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('编码规则查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'system:autocode:rule:list', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('编码规则新增', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'system:autocode:rule:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('编码规则更新', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'system:autocode:rule:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('编码规则删除', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'system:autocode:rule:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('编号规则', @new_id_level1, 6, 'rule', 'set/rule/index', NULL, 1, 0, 'C', '0', '0', 'set:rule:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('编号规则查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:rule:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('编号规则新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:rule:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('编号规则修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:rule:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('编号规则删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:rule:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('编号规则导出', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:rule:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('编号规则明细', @new_id_level1, 7, 'rules', 'set/rules/index', NULL, 1, 0, 'C', '1', '1', 'set:rules:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('编号规则明细查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:rules:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('编号规则明细新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:rules:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('编号规则明细修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:rules:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('编号规则明细删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:rules:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('编号规则明细导出', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:rules:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('参数设置', @new_id_level1, 1, 'systemSetting', 'set/systemSetting/index', NULL, 1, 0, 'C', '0', '0', 'set:systemSetting:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('参数设置查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:systemSetting:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('参数设置新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:systemSetting:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('参数设置修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:systemSetting:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('参数设置删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:systemSetting:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('参数设置导出', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:systemSetting:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('参数设置刷新缓存', @new_id_level2, 6, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'set:systemSetting:refreshCache', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('App版本管理', @new_id_level1, 11, 'appEdition', 'set/appEdition/index', NULL, 1, 0, 'C', '0', '0', 'set:appEdition:list', 'list', 'admin', NOW(), 'admin', NOW(), 'app版本管理菜单');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('app版本管理查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:appEdition:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('app版本管理新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:appEdition:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('app版本管理修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:appEdition:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('app版本管理删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:appEdition:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('app版本管理导出', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:appEdition:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('默认值设置', @new_id_level1, 9, 'defaultSetting', 'set/defaultSetting/index', NULL, 1, 0, 'C', '0', '0', 'set:defaultSetting:list', 'list', 'admin', NOW(), 'admin', NOW(), '默认值设置菜单');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('默认值设置查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:defaultSetting:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('默认值设置新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:defaultSetting:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('默认值设置修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:defaultSetting:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('默认值设置删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:defaultSetting:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('默认值设置导出', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:defaultSetting:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('字段设置', @new_id_level1, 8, 'fieldSetting', 'set/fieldSetting/index', NULL, 1, 0, 'C', '0', '0', 'set:fieldSetting:list', 'list', 'admin', NOW(), 'admin', NOW(), '单据字段设置菜单');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单据字段设置查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:fieldSetting:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单据字段设置新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:fieldSetting:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单据字段设置修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:fieldSetting:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单据字段设置删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:fieldSetting:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单据字段设置导出', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:fieldSetting:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('字段设置刷新缓存', @new_id_level2, 6, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'set:fieldSetting:refreshCache', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('打印设置', @new_id_level1, 10, 'printSetting', 'set/printSetting/index', NULL, 1, 0, 'C', '0', '0', 'set:printSetting:list', 'list', 'admin', NOW(), 'admin', NOW(), '打印设置菜单');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单据类型', @new_id_level1, 2, 'billType', 'set/billType/index', NULL, 1, 0, 'C', '0', '0', 'set:billType:list', 'list', 'admin', NOW(), 'admin', NOW(), '单据类型设置菜单');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单据类型设置查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:billType:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单据类型设置新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:billType:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单据类型设置修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:billType:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单据类型设置删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:billType:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单据类型设置导出', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'set:billType:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('自定义表', @new_id_level1, 0, 'customtable', NULL, NULL, 1, 0, 'M', '0', '0', NULL, 'build', 'admin', NOW(), '', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('表格设计', @new_id_level2, 1, 'tableInfo', 'set/tableInfo/index', NULL, 1, 0, 'C', '0', '0', 'set:tableInfo:list', 'list', 'admin', NOW(), 'admin', NOW(), '表信息菜单');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('表格样例', @new_id_level2, 4, 'view/TableInfoView', 'set/tableInfoView', '{"billCode":"TableInfoView"}', 1, 0, 'C', '0', '0', 'set:viewTableInfoView:list', 'education', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('过滤方案', @new_id_level2, 1, 'tableFilterPlan', 'set/tableFilterPlan/index', NULL, 1, 0, 'C', '0', '0', 'set:tableFilterPlan:list', 'build', 'admin', NOW(), 'admin', NOW(), '表筛选方案菜单');

-- 基础资料
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('基础资料', 0, 5, 'base', NULL, NULL, 1, 0, 'M', '0', '0', '', 'search', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level1 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单位', @new_id_level1, 9, 'unit', 'base/unit/index', NULL, 1, 0, 'C', '0', '0', 'base:unit:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单位导入', @new_id_level2, 5, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:unit:import', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单位查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:unit:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单位新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:unit:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单位修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:unit:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单位删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:unit:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单位导出', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:unit:export', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单位同步', @new_id_level2, 7, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:unit:readInterface', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('车间设置', @new_id_level1, 20, 'workshop', 'mes/md/workshop/index', NULL, 1, 0, 'C', '0', '0', 'mes:md:workshop', 'zip', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('车间列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workshop:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('车间查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workshop:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('车间新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workshop:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('车间修改', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workshop:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('车间删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workshop:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工作站', @new_id_level1, 21, 'workstation', 'mes/md/workstation/index', NULL, 1, 0, 'C', '0', '0', 'mes:md:workstation', 'job', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('车间', @new_id_level2, 7, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workshop:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工作站列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstation:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工作站查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstation:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工作站新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstation:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工作站编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstation:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工作站删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstation:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工作站导出', @new_id_level2, 6, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstation:export', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('人力资源列表', @new_id_level2, 8, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstationworker:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('人力资源新增', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstationworker:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('人力资源修改', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstationworker:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('人力资源删除', @new_id_level3, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstationworker:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('人力资源查询', @new_id_level3, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstationworker:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('岗位列表', @new_id_level2, 9, '', NULL, NULL, 1, 0, 'F', '0', '0', 'system:post:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工装夹具资源列表', @new_id_level2, 10, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstationtool:list', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工装夹具类型列表', @new_id_level3, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:tm:tooltype:list', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工装夹具资源新增', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstationtool:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工装夹具资源修改', @new_id_level3, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstationtool:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工装夹具资源删除', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstationtool:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工装夹具资源查询', @new_id_level3, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstationtool:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备资源列表', @new_id_level2, 12, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstationmachine:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备列表', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:machinery:list', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备资源新增', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstationmachine:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备资源删除', @new_id_level3, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:workstationmachine:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料', @new_id_level1, 11, 'material', 'base/material/index', NULL, 1, 0, 'C', '0', '0', 'base:material:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料导入', @new_id_level2, 5, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:material:import', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:material:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:material:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:material:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:material:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料导出', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:material:export', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('BOM', @new_id_level2, 8, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:bom:list', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('BOM查询', @new_id_level3, 1, '#', NULL, NULL, 1, 0, 'M', '0', '0', 'mes:md:bom:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('BOM新增', @new_id_level3, 2, '#', NULL, NULL, 1, 0, 'M', '0', '0', 'mes:md:bom:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('BOM修改', @new_id_level3, 3, ' #', NULL, NULL, 1, 0, 'M', '0', '0', 'mes:md:bom:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('BOM删除', @new_id_level3, 4, '#', NULL, NULL, 1, 0, 'M', '0', '0', 'mes:md:bom:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('BOM导出', @new_id_level3, 5, '#', NULL, NULL, 1, 0, 'M', '0', '0', 'mes:md:bom:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('SOP', @new_id_level2, 9, '#', NULL, NULL, 1, 0, 'M', '0', '0', 'mes:md:sop:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('SOP查询', @new_id_level3, 1, '#', NULL, NULL, 1, 0, 'M', '0', '0', 'mes:md:sop:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('SOP新增', @new_id_level3, 2, '#', NULL, NULL, 1, 0, 'M', '0', '0', 'mes:md:sop:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('SOP修改', @new_id_level3, 3, '#', NULL, NULL, 1, 0, 'M', '0', '0', 'mes:md:sop:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('SOP删除', @new_id_level3, 4, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:md:sop:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('SOP导出', @new_id_level3, 5, '#', NULL, NULL, 1, 0, 'M', '0', '0', 'mes:md:sop:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料同步', @new_id_level2, 7, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:material:readInterface', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('复制BOM', @new_id_level2, 10, '', NULL, NULL, 1, 0, 'F', '0', '0', 'base:material:copybom', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('多阶导出', @new_id_level2, 11, '', NULL, NULL, 1, 0, 'F', '0', '0', 'base:material:bommulti:export', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料分类', @new_id_level1, 10, 'materialClass', 'base/materialClass/index', NULL, 1, 0, 'C', '0', '0', 'base:materialClass:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料分类导入', @new_id_level2, 5, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:materialClass:import', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料分类查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:materialClass:query', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料分类新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:materialClass:add', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料分类修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:materialClass:edit', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料分类删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:materialClass:remove', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料分类导出', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:materialClass:export', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料分类同步', @new_id_level2, 7, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:materialClass:readInterface', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('客户', @new_id_level1, 4, 'customer', 'base/customer/index', NULL, 1, 0, 'C', '0', '0', 'base:customer:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('客户查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:customer:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('客户新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:customer:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('客户修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:customer:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('客户删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:customer:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('客户导出', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:customer:export', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('客户同步', @new_id_level2, 7, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:customer:readInterface', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('客户导入', @new_id_level2, 5, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:customer:import', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商', @new_id_level1, 3, 'supplier', 'base/supplier/index', NULL, 1, 0, 'C', '0', '0', 'base:supplier:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:supplier:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:supplier:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:supplier:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:supplier:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商导出', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:supplier:export', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商同步', @new_id_level2, 7, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:supplier:readInterface', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商导入', @new_id_level2, 5, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:supplier:import', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('货位', @new_id_level1, 6, 'location', 'base/location/index', NULL, 1, 0, 'C', '0', '0', 'base:location:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('货位查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:location:query', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('货位新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:location:add', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('货位修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:location:edit', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('货位删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:location:remove', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('货位导出', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:location:export', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('货位打印', @new_id_level2, 5, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:location:print', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('货位导入', @new_id_level2, 6, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:location:import', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('仓库', @new_id_level1, 5, 'warehouse', 'base/warehouse/index', NULL, 1, 0, 'C', '0', '0', 'base:warehouse:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('仓库查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:warehouse:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('仓库新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:warehouse:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('仓库修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:warehouse:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('仓库删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:warehouse:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('仓库导出', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:warehouse:export', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('仓库同步', @new_id_level2, 8, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:warehouse:readInterface', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('仓库打印', @new_id_level2, 5, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:warehouse:print', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('仓库导入', @new_id_level2, 6, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:warehouse:import', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('托盘', @new_id_level1, 7, 'pallet', 'base/pallet/index', NULL, 1, 0, 'C', '0', '0', 'base:pallet:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('托盘查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:pallet:query', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('托盘新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:pallet:add', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('托盘修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:pallet:edit', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('托盘删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:pallet:remove', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('托盘导出', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:pallet:export', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('托盘打印', @new_id_level2, 5, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:pallet:print', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('托盘导入', @new_id_level2, 6, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:pallet:import', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('部门', @new_id_level1, 1, 'department', 'base/department/index', NULL, 1, 0, 'C', '0', '0', 'base:department:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('部门查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:department:query', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('部门新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:department:add', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('部门修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:department:edit', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('部门删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:department:remove', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('部门导出', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:department:export', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('部门同步', @new_id_level2, 7, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:department:readInterface', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('部门导入', @new_id_level2, 5, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:department:import', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('职员', @new_id_level1, 2, 'employee', 'base/employee/index', NULL, 1, 0, 'C', '0', '0', 'base:employee:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('职员查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:employee:query', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('职员新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:employee:add', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('职员修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:employee:edit', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('职员删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:employee:remove', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('职员导出', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:employee:export', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('职员同步', @new_id_level2, 7, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:employee:readInterface', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('职员导入', @new_id_level2, 5, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:employee:import', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('扩展项', @new_id_level1, 101, 'extend', 'base/extend/index', NULL, 1, 0, 'C', '0', '0', 'base:extend:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('扩展项修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:extend:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('扩展项删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:extend:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('扩展项导出', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:extend:export', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('扩展项导入', @new_id_level2, 5, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:extend:import', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('扩展项同步', @new_id_level2, 7, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:extend:readInterface', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('扩展项查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:extend:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('扩展项新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:extend:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('扩展项分类', @new_id_level1, 100, 'extendClass', 'base/extendClass/index', NULL, 1, 0, 'C', '0', '0', 'base:extendClass:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('扩展项分类导入', @new_id_level2, 5, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:extendClass:import', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('扩展项分类查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:extendClass:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('扩展项分类新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:extendClass:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('扩展项分类修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:extendClass:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('扩展项分类删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:extendClass:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('扩展项分类导出', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:extendClass:export', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('包装', @new_id_level1, 8, 'package', 'base/package/index', NULL, 1, 0, 'C', '0', '0', 'base:package:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('包装查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:package:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('包装新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:package:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('包装修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:package:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('包装删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:package:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('包装导出', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'base:package:export', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('包装打印', @new_id_level2, 5, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:package:print', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('包装导入', @new_id_level2, 6, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'base:package:import', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();

-- 任务单据
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('任务单据', 0, 6, 'task', NULL, NULL, 1, 0, 'M', '0', '0', '', 'documentation', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level1 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务', @new_id_level1, 1, 'taskIn', 'wms/taskIn/index', '', 1, 0, 'C', '0', '0', 'wms:taskIn:list', 'taskin', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskIn:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskIn:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskIn:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskIn:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务导出', @new_id_level2, 11, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskIn:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务审核', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskIn:audit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务弃审', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskIn:cancelAudit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务关闭', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskIn:close', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务反关', @new_id_level2, 8, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskIn:cancelClose', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务同步', @new_id_level2, 12, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'wms:taskIn:readInterface', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务标签', @new_id_level2, 9, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskIn:label', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务打印', @new_id_level2, 10, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskIn:print', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('单次标签', @new_id_level1, 8, 'label', 'wms/label/index', NULL, 1, 0, 'C', '0', '0', 'wms:label:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签导入', @new_id_level2, 8, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:label:import', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签生效', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:label:valid', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签失效', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:label:cancelValid', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签打印', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:label:print', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:label:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:label:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:label:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:label:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签导出', @new_id_level2, 9, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:label:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务', @new_id_level1, 3, 'taskOut', 'wms/taskOut/index', NULL, 1, 0, 'C', '0', '0', 'wms:taskOut:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务审核', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskOut:audit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务弃审', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskOut:cancelAudit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务关闭', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskOut:close', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务反关', @new_id_level2, 8, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskOut:cancelClose', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务打印', @new_id_level2, 9, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskOut:print', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务同步', @new_id_level2, 11, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'wms:taskOut:readInterface', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskOut:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskOut:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskOut:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskOut:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务导出', @new_id_level2, 10, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskOut:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('冻结', @new_id_level1, 10, 'lock', 'wms/lock/index', NULL, 1, 0, 'C', '0', '0', 'wms:lock:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('冻结查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:lock:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('冻结新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:lock:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('冻结修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:lock:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('冻结删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:lock:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('冻结导出', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:lock:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('冻结生效', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:lock:valid', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('冻结失效', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:lock:cancelValid', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位任务', @new_id_level1, 5, 'taskMove', 'wms/taskMove/index', NULL, 1, 0, 'C', '0', '0', 'wms:taskMove:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位任务同步', @new_id_level2, 12, '	 #', '', NULL, 1, 0, 'C', '0', '0', 'wms:taskMove:readInterface', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位任务查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskMove:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位任务新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskMove:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位任务修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskMove:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位任务删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskMove:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位任务导出', @new_id_level2, 11, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskMove:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位任务审核', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskMove:audit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位任务反审', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskMove:cancelAudit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位任务关闭', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskMove:close', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位任务反关', @new_id_level2, 8, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskMove:cancelClose', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位任务打印', @new_id_level2, 9, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskMove:print', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位任务导入', @new_id_level2, 10, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'wms:taskMove:import', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务退', @new_id_level1, 4, 'backTaskOut', 'wms/backTaskOut/index', NULL, 1, 0, 'C', '0', '0', 'wms:backTaskOut:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务退审核', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskOut:audit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务退弃审', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskOut:cancelAudit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务退关闭', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskOut:close', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务退反关', @new_id_level2, 8, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskOut:cancelClose', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务退打印', @new_id_level2, 9, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskOut:print', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务退同步', @new_id_level2, 11, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'wms:backTaskOut:readInterface', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务退查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskOut:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务退新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskOut:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务退修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskOut:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务退删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskOut:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库任务退导出', @new_id_level2, 10, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskOut:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务退', @new_id_level1, 2, 'backTaskIn', 'wms/backTaskIn/index', NULL, 1, 0, 'C', '0', '0', 'wms:backTaskIn:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务退同步', @new_id_level2, 11, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'wms:backTaskIn:readInterface', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务退审核', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskIn:audit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务退查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskIn:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务退弃审', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskIn:cancelAudit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务退新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskIn:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务退关闭', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskIn:close', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务退修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskIn:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务退反关', @new_id_level2, 8, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskIn:cancelClose', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务退删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskIn:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务退打印', @new_id_level2, 9, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskIn:print', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库任务退导出', @new_id_level2, 10, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backTaskIn:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('重复标签', @new_id_level1, 9, 'labelRepeat', 'wms/labelRepeat/index', NULL, 1, 0, 'C', '0', '0', 'wms:labelRepeat:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:labelRepeat:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:labelRepeat:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:labelRepeat:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:labelRepeat:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签生效', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:labelRepeat:valid', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签失效', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:labelRepeat:cancelValid', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签打印', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:labelRepeat:print', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签导入', @new_id_level2, 8, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:labelRepeat:import', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('标签导出', @new_id_level2, 9, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:labelRepeat:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换任务', @new_id_level1, 6, 'taskChange', 'wms/taskChange/index', NULL, 1, 0, 'C', '0', '0', 'wms:taskChange:list', 'list', 'admin', NOW(), 'admin', NOW(), '转换任务主菜单');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换任务查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskChange:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换任务新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskChange:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换任务修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskChange:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换任务删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskChange:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换任务导出', @new_id_level2, 11, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskChange:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换任务审核', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskChange:audit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换任务弃审', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskChange:cancelAudit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换任务关闭', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskChange:close', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换任务反关', @new_id_level2, 8, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskChange:cancelClose', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换任务标签', @new_id_level2, 9, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskChange:label', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换任务打印', @new_id_level2, 10, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskChange:print', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点任务', @new_id_level1, 7, 'taskCheck', 'wms/taskCheck/index', NULL, 1, 0, 'C', '0', '0', 'wms:taskCheck:list', 'list', 'admin', NOW(), 'admin', NOW(), '盘点任务主菜单');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点任务查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskCheck:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点任务新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskCheck:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点任务修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskCheck:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点任务删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskCheck:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点任务导出', @new_id_level2, 10, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskCheck:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点任务审核', @new_id_level2, 5, '#', NULL, NULL, 1, 0, 'C', '0', '0', 'wms:taskCheck:audit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点任务弃审', @new_id_level2, 6, '#', NULL, NULL, 1, 0, 'C', '0', '0', 'wms:taskCheck:cancelAudit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点任务生成盈亏单', @new_id_level2, 7, '#', NULL, NULL, 1, 0, 'C', '0', '0', 'wms:taskCheck:createProfitAndLoss', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点任务删除盈亏单', @new_id_level2, 8, '#', NULL, NULL, 1, 0, 'C', '0', '0', 'wms:taskCheck:removeProfitAndLoss', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点任务打印', @new_id_level2, 9, '#', NULL, NULL, 1, 0, 'C', '0', '0', 'wms:taskCheck:print', '#', 'admin', NOW(), 'admin', NOW(), '');

-- 库存单据
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('库存单据', 0, 7, 'stock', NULL, NULL, 1, 0, 'M', '0', '0', '', 'nested', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level1 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换单', @new_id_level1, 6, 'stockChange', 'wms/stockChange/index', NULL, 1, 0, 'C', '0', '0', 'wms:stockChange:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockChange:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockChange:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockChange:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockChange:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换导出', @new_id_level2, 8, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockChange:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换审核', @new_id_level2, 5, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'wms:stockChange:audit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换弃审', @new_id_level2, 6, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'wms:stockChange:cancelAudit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('转换打印', @new_id_level2, 7, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'wms:stockChange:print', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('现存量', @new_id_level1, 8, 'current', 'wms/current/index', NULL, 1, 0, 'C', '0', '0', 'wms:current:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('现存量查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:current:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('现存量新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:current:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('现存量修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:current:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('现存量删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:current:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('现存量导出', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:current:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库单', @new_id_level1, 1, 'stockIn', 'wms/stockIn/index', NULL, 1, 0, 'C', '0', '0', 'wms:stockIn:list', 'stockin', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库重读', @new_id_level2, 9, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'wms:stockIn:insertInterface', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库审核', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockIn:audit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库弃审', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockIn:cancelAudit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库打印', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockIn:print', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockIn:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockIn:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockIn:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockIn:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库导出', @new_id_level2, 8, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockIn:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库单', @new_id_level1, 3, 'stockOut', 'wms/stockOut/index', NULL, 1, 0, 'C', '0', '0', 'wms:stockOut:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库审核', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockOut:audit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库弃审', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockOut:cancelAudit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockOut:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockOut:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockOut:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库打印', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockOut:print', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockOut:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库导出', @new_id_level2, 11, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockOut:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库重读', @new_id_level2, 9, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'wms:stockOut:insertInterface', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库导入', @new_id_level2, 10, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'wms:stockOut:import', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('匹配批号', @new_id_level2, 8, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockOut:match', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位单', @new_id_level1, 5, 'stockMove', 'wms/stockMove/index', NULL, 1, 0, 'C', '0', '0', 'wms:stockMove:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位重读', @new_id_level2, 10, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'wms:stockMove:insertInterface', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockMove:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockMove:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockMove:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockMove:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位导出', @new_id_level2, 8, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockMove:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位审核', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockMove:audit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位弃审', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockMove:cancelAudit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位打印', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockMove:print', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('移位导入', @new_id_level2, 10, '#', NULL, NULL, 1, 0, 'C', '0', '0', 'wms:stockMove:import', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('匹配批号', @new_id_level2, 9, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockMove:match', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库单退', @new_id_level1, 2, 'backStockIn', 'wms/backStockIn/index', '', 1, 0, 'C', '0', '0', 'wms:backStockIn:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库退重读', @new_id_level2, 9, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'wms:backStockIn:insertInterface', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库退审核', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backStockIn:audit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库退弃审', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backStockIn:cancelAudit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库退打印', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backStockIn:print', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库退查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backStockIn:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库退新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backStockIn:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库退修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backStockIn:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库退删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backStockIn:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('入库退导出', @new_id_level2, 8, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backStockIn:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库单退', @new_id_level1, 4, 'backStockOut', 'wms/backStockOut/index', NULL, 1, 0, 'C', '0', '0', 'wms:backStockOut:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库退审核', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backStockOut:audit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库退弃审', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backStockOut:cancelAudit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库退打印', @new_id_level2, 7, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backStockOut:print', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库退重读', @new_id_level2, 9, '#', NULL, NULL, 1, 0, 'F', '0', '0', 'wms:backStockOut:insertInterface', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库退查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backStockOut:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库退新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backStockOut:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库退修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backStockOut:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库退删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backStockOut:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出库退导出', @new_id_level2, 8, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:backStockOut:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('期初', @new_id_level1, 9, 'initial', 'wms/initial/index', NULL, 1, 0, 'C', '0', '0', 'wms:initial:list', 'list', 'admin', NOW(), 'admin', NOW(), '期初菜单');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('期初查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:initial:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('期初新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:initial:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('期初修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:initial:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('期初删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:initial:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('期初导出', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:initial:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('接口', @new_id_level1, 10, 'interface', 'wms/interface/index', NULL, 1, 0, 'C', '1', '0', 'wms:interface:list', 'list', 'admin', NOW(), 'admin', NOW(), '接口菜单');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('接口查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:interface:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('接口新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:interface:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('接口修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:interface:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('接口删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:interface:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('接口导出', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:interface:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点单', @new_id_level1, 7, 'stockCheck', 'wms/stockCheck/index', NULL, 1, 0, 'C', '0', '0', 'wms:stockCheck:list', 'list', 'admin', NOW(), 'admin', NOW(), '盘点主菜单');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockCheck:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点新增', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockCheck:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点修改', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockCheck:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点删除', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockCheck:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点导出', @new_id_level2, 8, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:stockCheck:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点审核', @new_id_level2, 5, '	 #', NULL, NULL, 1, 0, 'C', '0', '0', 'wms:stockCheck:audit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点弃审', @new_id_level2, 6, '	 #', NULL, NULL, 1, 0, 'C', '0', '0', 'wms:stockCheck:cancelAudit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('盘点打印', @new_id_level2, 7, '	 #', NULL, NULL, 1, 0, 'C', '0', '0', 'wms:stockCheck:print', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('生产倒冲', @new_id_level1, 11, 'backFlush', 'wms/backFlush/index', NULL, 1, 0, 'C', '0', '0', 'wms:backFlush:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('生成', @new_id_level2, 1, '	 #', NULL, NULL, 1, 0, 'C', '0', '0', 'wms:backFlush:create', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('导出', @new_id_level2, 2, '	 #', NULL, NULL, 1, 0, 'C', '0', '0', 'wms:backFlush:export', '#', 'admin', NOW(), '', NOW(), '');

-- 报表查询

INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('报表查询', 0, 9, 'report', NULL, NULL, 1, 0, 'M', '0', '0', '', 'chart', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level1 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('现存量', @new_id_level1, 1, 'reportCurrentStock', 'wms/reportCurrentStock/index', '', 1, 0, 'C', '0', '0', 'wms:reportCurrentStock:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('现存量查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportCurrentStock:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('现存量导出', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportCurrentStock:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出入任务关系', @new_id_level1, 5, 'reportTaskInTaskOut', 'wms/reportTaskInTaskOut/index', NULL, 1, 0, 'C', '0', '0', 'wms:reportTaskInTaskOut:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出入任务关系查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportTaskInTaskOut:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出入任务关系导出', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportTaskInTaskOut:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出入库存关系', @new_id_level1, 6, 'reportStockInStockOut', 'wms/reportStockInStockOut/index', NULL, 1, 0, 'C', '0', '0', 'wms:reportStockInStockOut:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出入库存关系查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportStockInStockOut:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出入库存关系导出', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportStockInStockOut:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('保质期预警', @new_id_level1, 10, 'reportQualityDayWarning', 'wms/reportQualityDayWarning/index', NULL, 1, 0, 'C', '0', '0', 'wms:reportQualityDayWarning:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('保质期预警查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportQualityDayWarning:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('保质期预警导出', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportQualityDayWarning:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('高低储预警', @new_id_level1, 9, 'reportStockQtyWarning', 'wms/reportStockQtyWarning/index', NULL, 1, 0, 'C', '0', '0', 'wms:reportStockQtyWarning:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('高低储预警查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportStockQtyWarning:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('高低储预警导出', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportStockQtyWarning:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('材料追溯', @new_id_level1, 7, 'reportMaterialTraceability', 'wms/reportMaterialTraceability/index', NULL, 1, 0, 'C', '0', '0', 'wms:reportMaterialTraceability:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('材料追溯查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportMaterialTraceability:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('材料追溯导出', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportMaterialTraceability:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('产品追溯', @new_id_level1, 8, 'reportProductTraceability', 'wms/reportProductTraceability/index', NULL, 1, 0, 'C', '0', '0', 'wms:reportProductTraceability:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('产品追溯查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportProductTraceability:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('产品追溯导出', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportProductTraceability:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料收发明细', @new_id_level1, 3, 'reportMaterialReceiptIssueDetails', 'wms/reportMaterialReceiptIssueDetails/index', NULL, 1, 0, 'C', '0', '0', 'wms:reportMaterialReceip:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料收发存明细查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportMaterialReceip:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料收发存明细导出', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportMaterialReceip:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料收发汇总', @new_id_level1, 2, 'reportMaterialReceiptIssueSummary', 'wms/reportMaterialReceiptIssueSummary/index', NULL, 1, 0, 'C', '0', '0', 'wms:reportMaterialReceiptIssueSummary:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料收发汇总查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportMaterialReceiptIssueSummary:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料收发汇总导出', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportMaterialReceiptIssueSummary:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('库存及账龄', @new_id_level1, 4, 'reportStockAging', 'wms/reportStockAging/index', NULL, 1, 0, 'C', '0', '0', 'wms:reportStockAging:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('库存及账龄查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportStockAging:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('库存及账龄导出', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:reportStockAging:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('快简报表', @new_id_level1, 0, 'tableInfoPreview', 'set/tableInfo/preview', NULL, 1, 0, 'C', '0', '0', 'set:tableInfo:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();

-- 设备管理
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备管理', 0, 60, 'mes/dv', NULL, NULL, 1, 0, 'M', '0', '0', '', 'redis', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level1 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备类型设置', @new_id_level1, 1, 'machinerytype', 'mes/dv/machinerytype/index', NULL, 1, 0, 'C', '0', '0', 'mes:dv:machinerytype', 'swagger', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备类型列表', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:machinerytype:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备类型查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:machinerytype:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备类型新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:machinerytype:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备类型编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:machinerytype:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备类型删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:machinerytype:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备台账', @new_id_level1, 2, 'machinery', 'mes/dv/machinery/index', NULL, 1, 0, 'C', '0', '0', 'mes:dv:machinery', 'system', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:machinery:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:machinery:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:machinery:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:machinery:edit', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('设备删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:machinery:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('点检保养项目', @new_id_level1, 3, 'dvsubject', 'mes/dv/subject/index', NULL, 1, 0, 'C', '0', '0', 'mes:dv:dvsubject', 'cascader', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('项目列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:dvsubject:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('项目信息查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:dvsubject:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('项目信息新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:dvsubject:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('项目信息编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:dvsubject:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('项目删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:dvsubject:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('点检保养计划', @new_id_level1, 4, 'checkplan', 'mes/dv/checkplan/index', NULL, 1, 0, 'C', '0', '0', 'mes:dv:checkplan', 'build', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('点检设备', @new_id_level2, 6, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:checkmachinery:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('点检设备新增', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:checkmachinery:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('点检设备修改', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:checkmachinery:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('点检设备删除', @new_id_level3, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:checkmachinery:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('点检项目', @new_id_level2, 7, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:checksubject:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('点检项目新增', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:checksubject:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('点检项目修改', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:checksubject:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('点检项目删除', @new_id_level3, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:checksubject:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('点检项目查询', @new_id_level3, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:checksubject:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('点检计划列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:checkplan:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('点检计划查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:checkplan:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('点检计划新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:checkplan:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('点检计划编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:checkplan:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('点检计划删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:checkplan:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('维修单', @new_id_level1, 5, 'repair', 'mes/dv/repair/index', NULL, 1, 0, 'C', '0', '0', 'mes:dv:repair', 'system', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('维修单列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:repair:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('维修单查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:repair:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('维修单修改', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:repair:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('维修单删除', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:repair:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('维修单行', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:repairline:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('维修单行新增', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:repairline:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('维修单行修改', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:repairline:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('维修单行删除', @new_id_level3, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:repairline:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('维修单行查询', @new_id_level3, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:repairline:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('维修单行导出', @new_id_level3, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:repairline:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('维修单新增', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:dv:repair:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();

-- 工装夹具
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工装夹具', 0, 70, 'tm', NULL, NULL, 1, 0, 'M', '0', '0', '', 'lock', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level1 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('类型设置', @new_id_level1, 1, 'tooltype', 'mes/tm/tooltype/index', NULL, 1, 0, 'C', '0', '0', 'mes:tm:tooltype', 'tree', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('类型编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:tm:tooltype:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('类型删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:tm:tooltype:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('类型列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:tm:tooltype:list', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('类型查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:tm:tooltype:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('类型新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:tm:tooltype:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工装夹具台账', @new_id_level1, 2, 'tool', 'mes/tm/tool/index', NULL, 1, 0, 'C', '0', '0', 'mes:tm:tool', 'date-range', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工装夹具列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:tm:tool:list', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工装夹具查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:tm:tool:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工装夹具新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:tm:tool:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工装夹具编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:tm:tool:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工装夹具删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:tm:tool:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工装夹具导出', @new_id_level2, 6, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:tm:tool:export', '#', 'admin', NOW(), '', NOW(), '');

-- 生产管理
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('生产管理', 0, 80, 'mes/pro', NULL, NULL, 1, 0, 'M', '0', '0', '', 'switch', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level1 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('生产工单', @new_id_level1, 1, 'workorder', 'mes/pro/workorder/index', NULL, 1, 0, 'C', '0', '0', 'mes:pro:workorder', 'log', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工单列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:workorder:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工单查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:workorder:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工单新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:workorder:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工单编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:workorder:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工单删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:workorder:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工单BOM列表查询', @new_id_level2, 6, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:workorderbom:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工单BOM查看', @new_id_level2, 7, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:workorderbom:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工单BOM编辑', @new_id_level2, 8, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:workorderbom:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工单BOM删除', @new_id_level2, 9, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:workorderbom:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工序设置', @new_id_level1, 2, 'process', 'mes/pro/process/index', NULL, 1, 0, 'C', '0', '0', 'mes:pro:process', 'druid', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工序列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:process:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工序查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:process:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工序新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:process:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工序编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:process:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工序删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:process:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工序导出', @new_id_level2, 6, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:process:export', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工序内容列表', @new_id_level2, 7, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:processcontent:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工序内容查询', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:processcontent:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工序内容新增', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:processcontent:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工序内容修改', @new_id_level3, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:processcontent:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工序内容删除', @new_id_level3, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:processcontent:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工序内容导出', @new_id_level3, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:processcontent:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺路线', @new_id_level1, 3, 'proroute', 'mes/pro/proroute/index', NULL, 1, 0, 'C', '0', '0', 'mes:pro:proroute', 'nested', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺路线列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:proroute:list', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺路线查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:proroute:query', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺流程新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:proroute:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺路线编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:proroute:edit', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺路线删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:proroute:remove', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺路线导出', @new_id_level2, 6, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:proroute:export', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺组成列表查询', @new_id_level2, 7, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:routeprocess:list', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺组成查询', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:routeprocess:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺组成新增', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:routeprocess:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺组成修改', @new_id_level3, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:routeprocess:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺组成删除', @new_id_level3, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:routeprocess:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺制程列表查询', @new_id_level2, 8, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:routeproduct:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺制程查询', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:routeproduct:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺制程新增', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:routeproduct:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺制程修改', @new_id_level3, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:routeproduct:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺制程删除', @new_id_level3, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:routeproduct:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('生产排产', @new_id_level1, 4, 'proschedule', 'mes/pro/schedule/indexG', NULL, 1, 0, 'C', '0', '0', 'mes:pro:schedule', 'build', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('生产任务列表', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:protask:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('生产任务新增', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'pro:protask:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('生产任务修改', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'pro:protask:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('生产任务删除', @new_id_level3, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'pro:protask:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('生产任务', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:protask:list', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('生产任务添加', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:protask:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('生产任务修改', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:protask:edit', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('生产任务删除', @new_id_level3, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:protask:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('生产任务导出', @new_id_level3, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:protask:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('生产任务查询', @new_id_level3, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:protask:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('排产', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:schedule:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工单', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:workorder:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工单查询', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:workorder:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('工艺', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:routeproduct:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('甘特图', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:gantt:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('生产报工', @new_id_level1, 5, 'feedback', 'mes/pro/feedback/index', NULL, 1, 0, 'C', '0', '0', 'mes:pro:feedback', 'chart', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('报工列表', @new_id_level2, 0, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:feedback:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('报工查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:feedback:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('报工新增', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:feedback:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('报工修改', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:feedback:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('报工删除', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:feedback:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('报工导出', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:pro:feedback:export', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();


-- 质量管理
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('质量管理', 0, 90, 'mes/qc', NULL, NULL, 1, 0, 'M', '0', '0', '', 'time-range', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level1 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测项设置', @new_id_level1, 2, 'qcindex', 'mes/qc/qcindex/index', NULL, 1, 0, 'C', '0', '0', 'mes:qc:qcindex', 'checkbox', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测项列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:qcindex:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测项查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:qcindex:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测项新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:qcindex:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测项编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:qcindex:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测项删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:qcindex:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测项导出', @new_id_level2, 6, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:qcindex:export', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测模板', @new_id_level1, 3, 'qctemplate', 'mes/qc/qctemplate/index', NULL, 1, 0, 'C', '0', '0', 'mes:qc:qctemplate', 'example', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料产品', @new_id_level2, 6, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:templateproduct:list', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料产品新增', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:templateproduct:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料产品修改', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:templateproduct:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('物料产品删除', @new_id_level3, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:templateproduct:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测项目', @new_id_level2, 7, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:templateindex:list', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测项目新增', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:templateindex:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测项目修改', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:templateindex:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测项目删除', @new_id_level3, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:templateindex:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测模板列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:qctemplate:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测模板查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:qctemplate:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测模板新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:qctemplate:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测模板编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:qctemplate:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测模板删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:qctemplate:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('常见缺陷', @new_id_level1, 1, 'qcdefect', 'mes/qc/qcdefect/index', NULL, 1, 0, 'C', '0', '0', 'mes:qc:qcdefect', 'bug', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('缺陷列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:qcdefect:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('缺陷查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:qcdefect:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('缺陷新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:qcdefect:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('缺陷编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:qcdefect:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('缺陷删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:qcdefect:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('来料检验', @new_id_level1, 4, 'iqc', 'mes/qc/iqc/iqc', NULL, 1, 0, 'C', '0', '0', 'mes:qc:iqc', 'edit', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测项', @new_id_level2, 7, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:iqcline:list', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测项目新增', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:iqcline:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测项目修改', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:iqcline:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('检测项目删除', @new_id_level3, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:iqcline:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('来料检验单列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:iqc:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('来料检验单查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:iqc:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('来料检验单新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:iqc:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('来料检验单编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:iqc:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('来料检验单删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:iqc:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('来料检验单导出', @new_id_level2, 6, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:iqc:export', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('过程检验', @new_id_level1, 5, 'ipqc', 'mes/qc/ipqc/index', NULL, 1, 0, 'C', '0', '0', 'mes:qc:ipqc', 'job', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('过程检验单列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:ipqc:list', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('过程检验单详情查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:ipqc:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('过程检验单新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:ipqc:add', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('过程检验单编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:ipqc:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('过程检验单删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:ipqc:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出货检验', @new_id_level1, 6, 'oqc', 'mes/qc/oqc/index', NULL, 1, 0, 'C', '0', '0', 'mes:qc:oqc', 'guide', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出货检验单列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:oqc:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出货检验单明细查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:oqc:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出货检验单新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:oqc:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出货检验单编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:oqc:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('出货检验单删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:qc:oqc:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();

-- 排班管理
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('排班管理', 0, 100, 'cal', NULL, NULL, 1, 0, 'M', '0', '0', '', 'peoples', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level1 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('班组设置    ', @new_id_level1, 1, 'team', 'mes/cal/team/index', NULL, 1, 0, 'C', '0', '0', 'mes:cal:team', 'peoples', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('班组列表查看', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:team:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('班组查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:team:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('班组新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:team:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('班组编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:team:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('班组删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:team:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('班组导出', @new_id_level2, 6, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:team:export', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('班组成员列表', @new_id_level2, 7, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:teammember:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('班组成员查询', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:teammember:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('班组成员新增', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:teammember:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('班组成员删除', @new_id_level3, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:teammember:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('班组成员导出', @new_id_level3, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:teammember:export', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('排班计划', @new_id_level1, 2, 'plan', 'mes/cal/plan/index', NULL, 1, 0, 'C', '0', '0', 'mes:cal:plan', 'build', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('排班计划列表查询', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:plan:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('排班计划查看', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:plan:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('排班计划新增', @new_id_level2, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:plan:add', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('排班计划编辑', @new_id_level2, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:plan:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('排班计划删除', @new_id_level2, 5, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:plan:remove', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('计划班次列表', @new_id_level2, 6, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:shift:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('计划班次新增', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:shift:add', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('计划班次修改', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:shift:edit', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('计划班次删除', @new_id_level3, 3, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:shift:remove', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('计划班次查询', @new_id_level3, 4, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:shift:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('计划班组列表', @new_id_level2, 7, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:planteam:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('计划班组新增', @new_id_level3, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:planteam:add', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('班组列表', @new_id_level3, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:team:list', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('班组成员列表', @new_id_level2, 8, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:teammember:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('排班计划导出', @new_id_level2, 9, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:plan:export', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('节假日设置', @new_id_level1, 3, 'holiday', 'mes/cal/holiday/index', NULL, 1, 0, 'C', '0', '0', 'mes:cal:holiday', 'date', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('节假日列表查询', @new_id_level2, 0, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:holiday:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('节假日查看', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:holiday:query', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('节假日设置', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:holiday:edit', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('排班日历', @new_id_level1, 4, 'calendar', 'mes/cal/calendar/index', NULL, 1, 0, 'C', '0', '0', 'mes:cal:calendar', 'date-range', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('用户列表', @new_id_level2, 2, '', NULL, NULL, 1, 0, 'F', '0', '0', 'system:user:list', '#', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('查看排班日历', @new_id_level2, 1, '', NULL, NULL, 1, 0, 'F', '0', '0', 'mes:cal:calendar:list', '#', 'admin', NOW(), '', NOW(), '');	SET @new_id_level3 = LAST_INSERT_ID();

-- 供应商门户
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商门户', 0, 200, 'supplier', NULL, NULL, 1, 0, 'M', '0', '0', '', 'guide', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level1 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商任务', @new_id_level1, 1, 'taskInSupplier', 'wms/taskInSupplier/index', '', 1, 0, 'C', '0', '0', 'wms:taskInSupplier:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商任务导出', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskInSupplier:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商任务查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskInSupplier:query', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商任务标签', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskInSupplier:label', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商任务打印', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:taskInSupplier:print', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商标签', @new_id_level1, 2, 'labelSupplier', 'wms/labelSupplier/index', NULL, 1, 0, 'C', '0', '0', 'wms:labelSupplier:list', 'list', 'admin', NOW(), 'admin', NOW(), '');	SET @new_id_level2 = LAST_INSERT_ID();
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商标签导出', @new_id_level2, 6, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:labelSupplier:export', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商标签查询', @new_id_level2, 1, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:labelSupplier:query', '#', 'admin', NOW(), '', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商标签删除', @new_id_level2, 2, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:labelSupplier:remove', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商标签生效', @new_id_level2, 3, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:labelSupplier:valid', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商标签失效', @new_id_level2, 4, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:labelSupplier:cancelValid', '#', 'admin', NOW(), 'admin', NOW(), '');
INSERT INTO `sys_menu`(`menu_name`, `parent_id`, `order_num`, `path`, `component`, `query`, `is_frame`, `is_cache`, `menu_type`, `visible`, `status`, `perms`, `icon`, `create_by`, `create_time`, `update_by`, `update_time`, `remark`) VALUES ('供应商标签打印', @new_id_level2, 5, '#', '', NULL, 1, 0, 'F', '0', '0', 'wms:labelSupplier:print', '#', 'admin', NOW(), 'admin', NOW(), '');

-- ----------------------------
-- 6、用户和角色关联表  用户N-1角色
-- ----------------------------
drop table if exists sys_user_role;
create table sys_user_role (
  user_id   bigint(20) not null comment '用户ID',
  role_id   bigint(20) not null comment '角色ID',
  primary key(user_id, role_id)
) engine=innodb comment = '用户和角色关联表';


-- ----------------------------
-- 7、角色和菜单关联表  角色1-N菜单
-- ----------------------------
drop table if exists sys_role_menu;
create table sys_role_menu (
  role_id   bigint(20) not null comment '角色ID',
  menu_id   bigint(20) not null comment '菜单ID',
  primary key(role_id, menu_id)
) engine=innodb comment = '角色和菜单关联表';


-- ----------------------------
-- 8、角色和部门关联表  角色1-N部门
-- ----------------------------
drop table if exists sys_role_dept;
create table sys_role_dept (
  role_id   bigint(20) not null comment '角色ID',
  dept_id   bigint(20) not null comment '部门ID',
  primary key(role_id, dept_id)
) engine=innodb comment = '角色和部门关联表';


-- ----------------------------
-- 9、用户与岗位关联表  用户1-N岗位
-- ----------------------------
drop table if exists sys_user_post;
create table sys_user_post
(
  user_id   bigint(20) not null comment '用户ID',
  post_id   bigint(20) not null comment '岗位ID',
  primary key (user_id, post_id)
) engine=innodb comment = '用户与岗位关联表';


-- ----------------------------
-- 10、操作日志记录
-- ----------------------------
drop table if exists sys_oper_log;
create table sys_oper_log (
  oper_id           bigint(20)      not null auto_increment    comment '日志主键',
  title             varchar(50)     default ''                 comment '模块标题',
  business_type     int(2)          default 0                  comment '业务类型（0其它 1新增 2修改 3删除）',
  method            varchar(100)    default ''                 comment '方法名称',
  request_method    varchar(10)     default ''                 comment '请求方式',
  operator_type     int(1)          default 0                  comment '操作类别（0其它 1后台用户 2手机端用户）',
  oper_name         varchar(50)     default ''                 comment '操作人员',
  dept_name         varchar(50)     default ''                 comment '部门名称',
  oper_url          varchar(255)    default ''                 comment '请求URL',
  oper_ip           varchar(128)    default ''                 comment '主机地址',
  oper_location     varchar(255)    default ''                 comment '操作地点',
  oper_param        varchar(2000)   default ''                 comment '请求参数',
  json_result       varchar(2000)   default ''                 comment '返回参数',
  status            int(1)          default 0                  comment '操作状态（0正常 1异常）',
  error_msg         varchar(2000)   default ''                 comment '错误消息',
  oper_time         datetime                                   comment '操作时间',
  primary key (oper_id)
) engine=innodb auto_increment=100 comment = '操作日志记录';


-- ----------------------------
-- 11、字典类型表
-- ----------------------------
drop table if exists sys_dict_type;
create table sys_dict_type
(
  dict_id          bigint(20)      not null auto_increment    comment '字典主键',
  dict_name        varchar(100)    default ''                 comment '字典名称',
  dict_type        varchar(100)    default ''                 comment '字典类型',
  status           char(1)         default '0'                comment '状态（0正常 1停用）',
  create_by        varchar(64)     default ''                 comment '创建者',
  create_time      datetime                                   comment '创建时间',
  update_by        varchar(64)     default ''                 comment '更新者',
  update_time      datetime                                   comment '更新时间',
  remark           varchar(500)    default null               comment '备注',
  primary key (dict_id),
  unique (dict_type)
) engine=innodb auto_increment=100 comment = '字典类型表';

insert into sys_dict_type values(1,  '用户性别', 'sys_user_sex',        '0', 'admin', sysdate(), '', null, '用户性别列表');
insert into sys_dict_type values(2,  '菜单状态', 'sys_show_hide',       '0', 'admin', sysdate(), '', null, '菜单状态列表');
insert into sys_dict_type values(3,  '系统开关', 'sys_normal_disable',  '0', 'admin', sysdate(), '', null, '系统开关列表');
insert into sys_dict_type values(4,  '任务状态', 'sys_job_status',      '0', 'admin', sysdate(), '', null, '任务状态列表');
insert into sys_dict_type values(5,  '任务分组', 'sys_job_group',       '0', 'admin', sysdate(), '', null, '任务分组列表');
insert into sys_dict_type values(6,  '系统是否', 'sys_yes_no',          '0', 'admin', sysdate(), '', null, '系统是否列表');
insert into sys_dict_type values(7,  '通知类型', 'sys_notice_type',     '0', 'admin', sysdate(), '', null, '通知类型列表');
insert into sys_dict_type values(8,  '通知状态', 'sys_notice_status',   '0', 'admin', sysdate(), '', null, '通知状态列表');
insert into sys_dict_type values(9,  '操作类型', 'sys_oper_type',       '0', 'admin', sysdate(), '', null, '操作类型列表');
insert into sys_dict_type values(10, '系统状态', 'sys_common_status',   '0', 'admin', sysdate(), '', null, '登录状态列表');

-- 自定义的字典
INSERT INTO `sys_dict_type` VALUES (100, '104 生效状态', 'effective_status', '0', 'admin', '2023-05-06 09:41:50', 'admin', '2024-01-17 23:49:37', '0生效 | 1失效');
INSERT INTO `sys_dict_type` VALUES (102, '201 入库类型', 'in_type', '0', 'admin', '2023-06-13 16:17:54', 'admin', '2023-11-06 23:54:16', '1入库 | -1入库退');
INSERT INTO `sys_dict_type` VALUES (105, '105 审核状态', 'audit_status', '0', 'admin', '2023-08-31 13:49:25', 'admin', '2023-10-16 15:20:39', '0已审核 | 1未审核');
INSERT INTO `sys_dict_type` VALUES (106, '工序状态', 'process_status', '0', 'admin', '2023-09-21 15:14:29', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (107, '委外工序', 'is_outsourcing', '0', 'admin', '2023-09-21 15:21:58', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (109, '101 设置分类', 'setting_class', '0', 'admin', '2023-09-27 13:54:33', 'admin', '2024-01-17 23:41:11', NULL);
INSERT INTO `sys_dict_type` VALUES (110, '102 是否', 'yes_no', '0', 'admin', '2023-09-27 14:52:08', '2023-10-16 15:19:55', '2023-10-16 15:19:55', '0是 | 1否');
INSERT INTO `sys_dict_type` VALUES (112, '206 转换类型', 'change_type', '0', 'admin', '2023-10-09 14:13:45', 'admin', '2024-09-04 14:51:33', '1转出 | 2转入');
INSERT INTO `sys_dict_type` VALUES (115, '202 出库类型', 'out_type', '0', 'admin', '2023-10-16 15:21:54', 'admin', '2023-11-06 23:53:21', '-1出库 | 1出库退');
INSERT INTO `sys_dict_type` VALUES (120, '203 标签类型', 'label_type', '0', 'admin', '2023-11-06 23:45:49', 'admin', '2023-11-06 23:53:33', '1一次性  | 2重复性');
INSERT INTO `sys_dict_type` VALUES (121, '204 盘点类型', 'check_type', '0', 'admin', '2023-11-06 23:47:11', 'admin', '2024-09-04 14:50:17', '1物料盘点 | 2标签盘点');
INSERT INTO `sys_dict_type` VALUES (122, '205 领料类型', 'collect_type', '0', 'admin', '2023-11-06 23:47:45', 'admin', '2024-01-17 22:59:26', '1直接 | 2倒冲');
INSERT INTO `sys_dict_type` VALUES (125, '303 任务出库状态', 'task_out_status', '0', 'admin', '2023-11-08 13:53:46', 'admin', '2023-11-08 14:06:38', NULL);
INSERT INTO `sys_dict_type` VALUES (126, '301 任务入库状态', 'task_in_status', '0', 'admin', '2023-11-08 15:22:40', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (127, '302 任务入库退状态', 'task_in_back_status', '0', 'admin', '2023-11-08 15:23:07', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (128, '304 任务出库退状态', 'task_out_back_status', '0', 'admin', '2023-11-08 15:23:32', 'admin', '2023-11-14 08:40:59', NULL);
INSERT INTO `sys_dict_type` VALUES (129, '305 任务移位状态', 'task_move_status', '0', 'admin', '2023-11-08 15:23:47', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (130, '306 任务生成标签状态', 'task_label_status', '0', 'admin', '2023-11-08 15:24:05', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (131, '307 标签入库状态', 'label_in_status', '0', 'admin', '2023-11-08 15:24:20', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (132, '308 标签出库状态', 'label_out_status', '0', 'admin', '2023-11-08 15:24:34', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (133, '处理措施', 'handling_measures', '0', 'admin', '2023-11-22 11:54:33', '', NULL, '处理措施');
INSERT INTO `sys_dict_type` VALUES (134, '报工状态', 'report_status', '0', 'admin', '2023-11-26 19:20:00', 'admin', '2023-11-26 19:20:12', NULL);
INSERT INTO `sys_dict_type` VALUES (135, '103 是否(1是0否)', 'yes_no_back', '0', 'admin', '2024-04-05 13:42:58', '', NULL, '1是 | 0否');
INSERT INTO `sys_dict_type` VALUES (136, '207写接口状态', 'interface_status', '0', 'admin', '2024-04-07 11:12:49', 'admin', '2024-09-04 14:51:23', '1未读 | 2正在 | 3成功 | 4失败');
INSERT INTO `sys_dict_type` VALUES (139, '309 任务转换状态', 'task_change_status', '0', 'admin', '2024-05-22 11:05:54', 'admin', '2024-05-22 11:06:23', NULL);
INSERT INTO `sys_dict_type` VALUES (142, '筛选状态', 'filter_status', '0', 'admin', '2024-09-05 11:01:56', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (144, '物料or产品', 'mes_item_product', '0', 'admin', '2022-04-16 16:34:20', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (145, '编码规则组成类型', 'sys_autocode_parttype', '0', 'admin', '2022-04-26 15:32:42', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (146, '编码规则组成循环方式', 'sys_autocode_cyclemethod', '0', 'admin', '2022-04-26 15:33:02', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (147, '客户类型', 'mes_client_type', '0', 'admin', '2022-05-06 20:53:28', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (148, '供应商级别', 'mes_vendor_level', '0', 'admin', '2022-05-06 22:44:56', 'admin', '2022-05-06 22:45:35', NULL);
INSERT INTO `sys_dict_type` VALUES (149, '单据状态【通用】', 'mes_order_status', '0', 'admin', '2022-05-09 10:34:41', 'admin', '2022-05-09 10:35:10', NULL);
INSERT INTO `sys_dict_type` VALUES (150, '生产工单来源', 'mes_workorder_sourcetype', '0', 'admin', '2022-05-09 11:23:22', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (151, '维护类型表', 'mes_mainten_type', '0', 'admin', '2022-05-10 23:40:36', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (152, '工装夹具状态', 'mes_tool_status', '0', 'admin', '2022-05-11 20:50:46', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (153, '工序关系类型', 'mes_link_type', '0', 'admin', '2022-05-13 21:50:44', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (154, '时间单位', 'mes_time_type', '0', 'admin', '2022-05-14 08:40:53', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (155, '检测项类型', 'mes_index_type', '0', 'admin', '2022-05-17 21:26:05', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (156, '检测类型', 'mes_qc_type', '0', 'admin', '2022-05-18 09:38:32', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (157, '缺陷等级', 'mes_defect_level', '0', 'admin', '2022-05-19 10:23:38', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (158, '检验结果', 'mes_qc_result', '0', 'admin', '2022-05-19 16:37:45', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (159, '倒班方式', 'mes_shift_type', '0', 'admin', '2022-06-06 21:33:17', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (160, '轮班方式', 'mes_shift_method', '0', 'admin', '2022-06-06 21:39:26', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (161, '排班类型', 'mes_calendar_type', '0', 'admin', '2022-06-08 13:26:56', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (162, '设备点检保养项目类型', 'mes_dvsubject_type', '0', 'admin', '2022-06-16 16:50:14', 'admin', '2022-06-16 16:50:29', NULL);
INSERT INTO `sys_dict_type` VALUES (163, '设备点检频率', 'mes_cycle_type', '0', 'admin', '2022-06-16 20:47:19', 'admin', '2022-06-16 20:51:22', NULL);
INSERT INTO `sys_dict_type` VALUES (164, '设备点检保养计划类型', 'dv_plan_type', '0', 'admin', '2022-06-19 17:03:18', 'admin', '2022-06-19 17:04:17', NULL);
INSERT INTO `sys_dict_type` VALUES (165, '条码格式', 'mes_barcode_formart', '0', 'admin', '2022-08-01 11:05:54', 'admin', '2022-08-01 11:06:15', NULL);
INSERT INTO `sys_dict_type` VALUES (166, '条码类型', 'mes_barcode_type', '0', 'admin', '2022-08-01 11:08:27', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (167, '维修结果', 'mes_repair_result', '0', 'admin', '2022-08-06 11:27:05', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (168, '民族', 'nation_type', '0', 'admin', '2022-08-15 14:25:55', 'admin', '2022-08-15 14:26:34', '民族');
INSERT INTO `sys_dict_type` VALUES (169, '过程质量检验类型', 'mes_ipqc_type', '0', 'admin', '2022-08-29 20:18:48', 'admin', '2022-08-29 20:18:59', NULL);
INSERT INTO `sys_dict_type` VALUES (170, '生产报工类型', 'mes_feedback_type', '0', 'admin', '2022-10-02 15:51:21', '', NULL, NULL);
INSERT INTO `sys_dict_type` VALUES (171, '设备状态', 'mes_machinery_status', '0', 'admin', '2022-10-09 19:23:54', '', NULL, NULL);


-- ----------------------------
-- 12、字典数据表
-- ----------------------------
drop table if exists sys_dict_data;
create table sys_dict_data
(
  dict_code        bigint(20)      not null auto_increment    comment '字典编码',
  dict_sort        int(4)          default 0                  comment '字典排序',
  dict_label       varchar(100)    default ''                 comment '字典标签',
  dict_value       varchar(100)    default ''                 comment '字典键值',
  dict_type        varchar(100)    default ''                 comment '字典类型',
  css_class        varchar(100)    default null               comment '样式属性（其他样式扩展）',
  list_class       varchar(100)    default null               comment '表格回显样式',
  is_default       char(1)         default 'N'                comment '是否默认（Y是 N否）',
  status           char(1)         default '0'                comment '状态（0正常 1停用）',
  create_by        varchar(64)     default ''                 comment '创建者',
  create_time      datetime                                   comment '创建时间',
  update_by        varchar(64)     default ''                 comment '更新者',
  update_time      datetime                                   comment '更新时间',
  remark           varchar(500)    default null               comment '备注',
  primary key (dict_code)
) engine=innodb auto_increment=100 comment = '字典数据表';

insert into sys_dict_data values(1,  1,  '男',       '0',       'sys_user_sex',        '',   '',        'Y', '0', 'admin', sysdate(), '', null, '性别男');
insert into sys_dict_data values(2,  2,  '女',       '1',       'sys_user_sex',        '',   '',        'N', '0', 'admin', sysdate(), '', null, '性别女');
insert into sys_dict_data values(3,  3,  '未知',     '2',       'sys_user_sex',        '',   '',        'N', '0', 'admin', sysdate(), '', null, '性别未知');
insert into sys_dict_data values(4,  1,  '显示',     '0',       'sys_show_hide',       '',   'primary', 'Y', '0', 'admin', sysdate(), '', null, '显示菜单');
insert into sys_dict_data values(5,  2,  '隐藏',     '1',       'sys_show_hide',       '',   'danger',  'N', '0', 'admin', sysdate(), '', null, '隐藏菜单');
insert into sys_dict_data values(6,  1,  '正常',     '0',       'sys_normal_disable',  '',   'primary', 'Y', '0', 'admin', sysdate(), '', null, '正常状态');
insert into sys_dict_data values(7,  2,  '停用',     '1',       'sys_normal_disable',  '',   'danger',  'N', '0', 'admin', sysdate(), '', null, '停用状态');
insert into sys_dict_data values(8,  1,  '正常',     '0',       'sys_job_status',      '',   'primary', 'Y', '0', 'admin', sysdate(), '', null, '正常状态');
insert into sys_dict_data values(9,  2,  '暂停',     '1',       'sys_job_status',      '',   'danger',  'N', '0', 'admin', sysdate(), '', null, '停用状态');
insert into sys_dict_data values(10, 1,  '默认',     'DEFAULT', 'sys_job_group',       '',   '',        'Y', '0', 'admin', sysdate(), '', null, '默认分组');
insert into sys_dict_data values(11, 2,  '系统',     'SYSTEM',  'sys_job_group',       '',   '',        'N', '0', 'admin', sysdate(), '', null, '系统分组');
insert into sys_dict_data values(12, 1,  '是',       'Y',       'sys_yes_no',          '',   'primary', 'Y', '0', 'admin', sysdate(), '', null, '系统默认是');
insert into sys_dict_data values(13, 2,  '否',       'N',       'sys_yes_no',          '',   'danger',  'N', '0', 'admin', sysdate(), '', null, '系统默认否');
insert into sys_dict_data values(14, 1,  '通知',     '1',       'sys_notice_type',     '',   'warning', 'Y', '0', 'admin', sysdate(), '', null, '通知');
insert into sys_dict_data values(15, 2,  '公告',     '2',       'sys_notice_type',     '',   'success', 'N', '0', 'admin', sysdate(), '', null, '公告');
insert into sys_dict_data values(16, 1,  '正常',     '0',       'sys_notice_status',   '',   'primary', 'Y', '0', 'admin', sysdate(), '', null, '正常状态');
insert into sys_dict_data values(17, 2,  '关闭',     '1',       'sys_notice_status',   '',   'danger',  'N', '0', 'admin', sysdate(), '', null, '关闭状态');
insert into sys_dict_data values(18, 99, '其他',     '0',       'sys_oper_type',       '',   'info',    'N', '0', 'admin', sysdate(), '', null, '其他操作');
insert into sys_dict_data values(19, 1,  '新增',     '1',       'sys_oper_type',       '',   'info',    'N', '0', 'admin', sysdate(), '', null, '新增操作');
insert into sys_dict_data values(20, 2,  '修改',     '2',       'sys_oper_type',       '',   'info',    'N', '0', 'admin', sysdate(), '', null, '修改操作');
insert into sys_dict_data values(21, 3,  '删除',     '3',       'sys_oper_type',       '',   'danger',  'N', '0', 'admin', sysdate(), '', null, '删除操作');
insert into sys_dict_data values(22, 4,  '授权',     '4',       'sys_oper_type',       '',   'primary', 'N', '0', 'admin', sysdate(), '', null, '授权操作');
insert into sys_dict_data values(23, 5,  '导出',     '5',       'sys_oper_type',       '',   'warning', 'N', '0', 'admin', sysdate(), '', null, '导出操作');
insert into sys_dict_data values(24, 6,  '导入',     '6',       'sys_oper_type',       '',   'warning', 'N', '0', 'admin', sysdate(), '', null, '导入操作');
insert into sys_dict_data values(25, 7,  '强退',     '7',       'sys_oper_type',       '',   'danger',  'N', '0', 'admin', sysdate(), '', null, '强退操作');
insert into sys_dict_data values(26, 8,  '生成代码', '8',       'sys_oper_type',       '',   'warning', 'N', '0', 'admin', sysdate(), '', null, '生成操作');
insert into sys_dict_data values(27, 9,  '清空数据', '9',       'sys_oper_type',       '',   'danger',  'N', '0', 'admin', sysdate(), '', null, '清空操作');
insert into sys_dict_data values(28, 1,  '成功',     '0',       'sys_common_status',   '',   'primary', 'N', '0', 'admin', sysdate(), '', null, '正常状态');
insert into sys_dict_data values(29, 2,  '失败',     '1',       'sys_common_status',   '',   'danger',  'N', '0', 'admin', sysdate(), '', null, '停用状态');

-- 自定义的字典 数据

INSERT INTO `sys_dict_data` VALUES (100, 1, '生效', '0', 'effective_status', NULL, 'success', 'N', '0', 'admin', '2023-05-06 09:42:20', 'admin', '2024-01-17 23:49:50', '生效状态');
INSERT INTO `sys_dict_data` VALUES (101, 2, '失效', '1', 'effective_status', NULL, 'danger', 'N', '0', 'admin', '2023-05-06 09:42:34', 'admin', '2024-01-17 23:49:57', '失效状态');
INSERT INTO `sys_dict_data` VALUES (111, 1, '已审核', '0', 'audit_status', NULL, 'success', 'N', '0', 'admin', '2023-08-31 13:49:50', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (112, 2, '未审核', '1', 'audit_status', NULL, 'danger', 'N', '0', 'admin', '2023-08-31 13:50:08', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (113, 1, '入库', '1', 'in_type', NULL, 'success', 'N', '0', 'admin', '2023-08-31 13:55:21', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (114, 2, '入库退', '-1', 'in_type', NULL, 'danger', 'N', '0', 'admin', '2023-08-31 13:55:47', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (115, 0, '有效', '0', 'process_status', NULL, 'primary', 'N', '0', 'admin', '2023-09-21 15:15:24', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (116, 1, '无效', '1', 'process_status', NULL, 'danger', 'N', '0', 'admin', '2023-09-21 15:15:48', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (117, 0, '是', '0', 'is_outsourcing', NULL, 'success', 'N', '0', 'admin', '2023-09-21 15:33:02', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (118, 1, '否', '1', 'is_outsourcing', NULL, 'danger', 'N', '0', 'admin', '2023-09-21 15:33:17', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (123, 2, '系统设置', 'SysSetting', 'setting_class', NULL, 'default', 'N', '0', 'admin', '2023-09-27 13:55:47', 'admin', '2024-01-17 23:20:37', 'system setting');
INSERT INTO `sys_dict_data` VALUES (124, 3, 'wms设置', 'WmsSetting', 'setting_class', NULL, 'default', 'N', '0', 'admin', '2023-09-27 13:55:58', 'admin', '2024-01-17 23:17:40', NULL);
INSERT INTO `sys_dict_data` VALUES (125, 4, 'mes设置', 'MesSetting', 'setting_class', NULL, 'default', 'N', '0', 'admin', '2023-09-27 13:56:10', 'admin', '2024-01-17 23:17:49', NULL);
INSERT INTO `sys_dict_data` VALUES (126, 1, '是', '0', 'yes_no', NULL, 'success', 'N', '0', 'admin', '2023-09-27 14:52:23', 'admin', '2023-09-27 14:52:46', NULL);
INSERT INTO `sys_dict_data` VALUES (127, 2, '否', '1', 'yes_no', NULL, 'danger', 'N', '0', 'admin', '2023-09-27 14:52:29', 'admin', '2023-09-27 14:52:52', NULL);
INSERT INTO `sys_dict_data` VALUES (129, 0, '转出', '1', 'change_type', NULL, 'info', 'N', '0', 'admin', '2023-10-09 14:14:36', 'admin', '2024-06-04 14:44:18', NULL);
INSERT INTO `sys_dict_data` VALUES (130, 1, '转入', '2', 'change_type', NULL, 'primary', 'N', '0', 'admin', '2023-10-09 14:14:46', 'admin', '2024-06-04 14:44:24', NULL);
INSERT INTO `sys_dict_data` VALUES (136, 0, '出库', '-1', 'out_type', NULL, 'success', 'N', '0', 'admin', '2023-10-16 15:22:30', 'admin', '2023-10-16 15:36:52', NULL);
INSERT INTO `sys_dict_data` VALUES (137, 0, '出库退', '1', 'out_type', NULL, 'danger', 'N', '0', 'admin', '2023-10-16 15:22:43', 'admin', '2023-10-16 15:37:07', NULL);
INSERT INTO `sys_dict_data` VALUES (159, 1, '一次性', '1', 'label_type', NULL, 'default', 'N', '0', 'admin', '2023-11-07 00:07:22', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (160, 2, '重复性', '2', 'label_type', NULL, 'default', 'N', '0', 'admin', '2023-11-07 00:07:32', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (161, 1, '盘点物料', '1', 'check_type', NULL, 'default', 'N', '0', 'admin', '2023-11-07 00:07:53', 'admin', '2024-07-11 15:44:51', NULL);
INSERT INTO `sys_dict_data` VALUES (162, 2, '盘点标签', '2', 'check_type', NULL, 'default', 'N', '0', 'admin', '2023-11-07 00:08:02', 'admin', '2024-07-11 15:44:46', NULL);
INSERT INTO `sys_dict_data` VALUES (163, 1, '直接', '1', 'collect_type', NULL, 'success', 'N', '0', 'admin', '2023-11-07 00:08:18', 'admin', '2023-12-13 16:20:06', NULL);
INSERT INTO `sys_dict_data` VALUES (164, 2, '倒冲', '2', 'collect_type', NULL, 'danger', 'N', '0', 'admin', '2023-11-07 00:08:25', 'admin', '2023-12-13 16:20:09', NULL);
INSERT INTO `sys_dict_data` VALUES (165, 1, '未全部出库', '1', 'task_out_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 13:55:05', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (166, 2, '已全部出库', '2', 'task_out_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 13:55:35', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (167, 3, '超比例未全部出库', '3', 'task_out_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 13:55:52', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (168, 4, '超比例已全部出库', '4', 'task_out_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 13:56:19', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (169, 1, '未全部入库', '1', 'task_in_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:29:34', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (170, 2, '已全部入库', '2', 'task_in_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:29:45', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (171, 3, '超比例未全部入库', '3', 'task_in_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:30:00', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (172, 4, '超比例已全部入库', '4', 'task_in_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:30:09', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (173, 1, '未全部入库退', '1', 'task_in_back_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:30:28', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (174, 2, '已全部入库退', '2', 'task_in_back_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:30:36', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (175, 1, '未全部出库退', '1', 'task_out_back_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:31:01', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (176, 2, '已全部出库退', '2', 'task_out_back_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:31:11', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (177, 1, '未全部移位', '1', 'task_move_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:31:26', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (178, 2, '已全部移位', '2', 'task_move_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:31:37', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (179, 1, '未全部拆标签', '1', 'task_label_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:31:52', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (180, 2, '已全部拆标签', '2', 'task_label_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:32:00', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (181, 3, '超比例未全部拆标签', '3', 'task_label_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:32:10', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (182, 4, '超比例已全部拆标签', '4', 'task_label_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:32:20', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (183, 1, '未全部入库', '1', 'label_in_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:32:36', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (184, 2, '已全部入库', '2', 'label_in_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:32:46', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (185, 1, '未全部出库', '1', 'label_out_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:32:59', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (186, 2, '已全部出库', '2', 'label_out_status', NULL, 'default', 'N', '0', 'admin', '2023-11-08 15:33:08', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (189, 0, '返修', '1', 'handling_measures', NULL, 'default', 'N', '0', 'admin', '2023-11-22 11:55:25', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (190, 0, '报废', '2', 'handling_measures', NULL, 'default', 'N', '0', 'admin', '2023-11-22 11:55:37', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (191, 0, '开工', '1', 'report_status', NULL, 'success', 'N', '0', 'admin', '2023-11-26 19:20:58', 'admin', '2023-11-26 19:21:46', NULL);
INSERT INTO `sys_dict_data` VALUES (192, 1, '暂停', '2', 'report_status', NULL, 'warning', 'N', '0', 'admin', '2023-11-26 19:21:41', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (193, 3, '完工', '3', 'report_status', NULL, 'info', 'N', '0', 'admin', '2023-11-26 19:22:40', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (196, 1, '初始化设置', 'InitSetting', 'setting_class', NULL, 'default', 'N', '0', 'admin', '2024-01-17 23:14:59', 'admin', '2024-01-17 23:19:56', 'initialization setting');
INSERT INTO `sys_dict_data` VALUES (197, 10, '审核', '10', 'sys_oper_type', NULL, 'success', 'N', '0', 'admin', '2024-02-22 16:47:14', 'admin', '2024-02-22 17:05:07', NULL);
INSERT INTO `sys_dict_data` VALUES (198, 11, '弃审', '11', 'sys_oper_type', NULL, 'danger', 'N', '0', 'admin', '2024-02-22 16:56:43', 'admin', '2024-02-22 16:58:28', NULL);
INSERT INTO `sys_dict_data` VALUES (199, 12, '关闭', '12', 'sys_oper_type', NULL, 'success', 'N', '0', 'admin', '2024-02-22 16:57:13', 'admin', '2024-02-22 16:58:37', NULL);
INSERT INTO `sys_dict_data` VALUES (200, 13, '反关', '13', 'sys_oper_type', NULL, 'danger', 'N', '0', 'admin', '2024-02-22 16:57:47', 'admin', '2024-02-22 16:58:41', NULL);
INSERT INTO `sys_dict_data` VALUES (201, 16, '打印', '16', 'sys_oper_type', NULL, 'warning', 'N', '0', 'admin', '2024-02-22 16:59:18', 'admin', '2024-02-22 17:05:38', NULL);
INSERT INTO `sys_dict_data` VALUES (202, 17, '标签', '17', 'sys_oper_type', NULL, 'warning', 'N', '0', 'admin', '2024-02-22 16:59:43', 'admin', '2024-02-22 17:05:33', NULL);
INSERT INTO `sys_dict_data` VALUES (203, 18, '同步', '18', 'sys_oper_type', NULL, 'warning', 'N', '0', 'admin', '2024-02-22 17:00:25', 'admin', '2024-02-22 17:06:24', NULL);
INSERT INTO `sys_dict_data` VALUES (204, 14, '生效', '14', 'sys_oper_type', NULL, 'success', 'N', '0', 'admin', '2024-02-22 17:01:39', 'admin', '2024-02-22 17:06:05', NULL);
INSERT INTO `sys_dict_data` VALUES (205, 15, '失效', '15', 'sys_oper_type', NULL, 'danger', 'N', '0', 'admin', '2024-02-22 17:01:45', 'admin', '2024-02-22 17:06:15', NULL);
INSERT INTO `sys_dict_data` VALUES (206, 20, '匹配', '20', 'sys_oper_type', NULL, 'warning', 'N', '0', 'admin', '2024-02-22 17:56:41', 'admin', '2024-06-07 20:42:08', NULL);
INSERT INTO `sys_dict_data` VALUES (207, 19, '重读', '19', 'sys_oper_type', NULL, 'warning', 'N', '0', 'admin', '2024-03-05 12:01:55', 'admin', '2024-06-07 20:44:56', NULL);
INSERT INTO `sys_dict_data` VALUES (212, 0, '是', '1', 'yes_no_back', NULL, 'default', 'N', '0', 'admin', '2024-04-05 14:14:17', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (213, 1, '否', '0', 'yes_no_back', NULL, 'default', 'N', '0', 'admin', '2024-04-05 14:14:27', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (214, 1, '未读取', '1', 'interface_status', NULL, 'default', 'N', '0', 'admin', '2024-04-07 11:14:19', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (215, 2, '正在读取', '2', 'interface_status', NULL, 'default', 'N', '0', 'admin', '2024-04-07 11:14:31', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (216, 3, '成功', '3', 'interface_status', NULL, 'default', 'N', '0', 'admin', '2024-04-07 11:14:46', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (217, 4, '失败', '4', 'interface_status', NULL, 'default', 'N', '0', 'admin', '2024-04-07 11:14:58', 'admin', '2024-04-07 11:15:20', NULL);
INSERT INTO `sys_dict_data` VALUES (238, 1, '未全部转换', '1', 'task_change_status', NULL, 'default', 'N', '0', 'admin', '2024-05-22 11:06:34', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (239, 2, '已全部转换', '2', 'task_change_status', NULL, 'default', 'N', '0', 'admin', '2024-05-22 11:06:43', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (241, 3, '超比例未全部转换', '3', 'task_change_status', NULL, 'default', 'N', '0', 'admin', '2024-05-22 19:56:36', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (242, 4, '超比例已全部转换', '4', 'task_change_status', NULL, 'default', 'N', '0', 'admin', '2024-05-22 19:56:48', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (264, 21, '生成盈亏单', '21', 'sys_oper_type', NULL, 'success', 'N', '0', 'admin', '2024-07-16 09:31:07', 'admin', '2024-07-16 09:31:17', NULL);
INSERT INTO `sys_dict_data` VALUES (265, 22, '删除盈亏单', '22', 'sys_oper_type', NULL, 'primary', 'N', '0', 'admin', '2024-07-16 09:31:44', 'admin', '2024-07-16 09:31:52', NULL);
INSERT INTO `sys_dict_data` VALUES (283, 0, '显示', '0', 'filter_status', NULL, 'default', 'N', '0', 'admin', '2024-09-05 11:02:34', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (284, 1, '可选显示', '1', 'filter_status', NULL, 'default', 'N', '0', 'admin', '2024-09-05 11:03:20', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (285, 2, '不显示', '2', 'filter_status', NULL, 'default', 'N', '0', 'admin', '2024-09-05 11:03:38', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (286, 10, '无效', '10', 'filter_status', NULL, 'default', 'N', '0', 'admin', '2024-09-05 11:04:06', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (289, 1, '物料', 'ITEM', 'mes_item_product', NULL, 'default', 'N', '0', 'admin', '2022-04-16 16:34:46', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (290, 2, '产品', 'PRODUCT', 'mes_item_product', NULL, 'default', 'N', '0', 'admin', '2022-04-16 16:35:02', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (291, 1, '输入字符', 'INPUTCHAR', 'sys_autocode_parttype', NULL, 'default', 'N', '0', 'admin', '2022-04-26 15:33:47', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (292, 2, '当前日期时间', 'NOWDATE', 'sys_autocode_parttype', NULL, 'default', 'N', '0', 'admin', '2022-04-26 15:34:07', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (293, 3, '固定字符', 'FIXCHAR', 'sys_autocode_parttype', NULL, 'default', 'N', '0', 'admin', '2022-04-26 15:34:27', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (294, 4, '流水号', 'SERIALNO', 'sys_autocode_parttype', NULL, 'default', 'N', '0', 'admin', '2022-04-26 15:34:53', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (295, 1, '按年', 'YEAR', 'sys_autocode_cyclemethod', NULL, 'default', 'N', '0', 'admin', '2022-04-26 15:35:17', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (296, 2, '按月', 'MONTH', 'sys_autocode_cyclemethod', NULL, 'default', 'N', '0', 'admin', '2022-04-26 15:35:29', 'admin', '2022-04-26 15:35:55', NULL);
INSERT INTO `sys_dict_data` VALUES (297, 3, '按天', 'DAY', 'sys_autocode_cyclemethod', NULL, 'default', 'N', '0', 'admin', '2022-04-26 15:36:13', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (298, 4, '按小时', 'HOUR', 'sys_autocode_cyclemethod', NULL, 'default', 'N', '0', 'admin', '2022-04-26 15:36:34', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (299, 5, '按分钟', 'MINUTE', 'sys_autocode_cyclemethod', NULL, 'default', 'N', '0', 'admin', '2022-04-26 15:36:59', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (300, 6, '按传入字符', 'OTHER', 'sys_autocode_cyclemethod', NULL, 'default', 'N', '0', 'admin', '2022-04-26 15:37:19', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (301, 1, '企业客户', 'ENTERPRISE', 'mes_client_type', NULL, 'default', 'N', '0', 'admin', '2022-05-06 20:54:37', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (302, 2, '个人', 'PERSON', 'mes_client_type', NULL, 'default', 'N', '0', 'admin', '2022-05-06 20:55:00', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (303, 1, '优质供应商', 'A', 'mes_vendor_level', NULL, 'default', 'N', '0', 'admin', '2022-05-06 22:45:52', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (304, 2, '正常', 'B', 'mes_vendor_level', NULL, 'default', 'N', '0', 'admin', '2022-05-06 22:46:02', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (305, 3, '重点关注', 'C', 'mes_vendor_level', NULL, 'default', 'N', '0', 'admin', '2022-05-06 22:46:15', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (306, 4, '劣质供应商', 'D', 'mes_vendor_level', NULL, 'default', 'N', '0', 'admin', '2022-05-06 22:46:41', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (307, 5, '黑名单', 'E', 'mes_vendor_level', NULL, 'default', 'N', '0', 'admin', '2022-05-06 22:46:54', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (308, 1, '草稿', 'PREPARE', 'mes_order_status', NULL, 'default', 'N', '0', 'admin', '2022-05-09 10:35:34', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (309, 2, '已确认', 'CONFIRMED', 'mes_order_status', NULL, 'default', 'N', '0', 'admin', '2022-05-09 10:36:37', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (310, 3, '审批中', 'APPROVING', 'mes_order_status', NULL, 'default', 'N', '0', 'admin', '2022-05-09 10:39:30', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (311, 4, '已审批', 'APPROVED', 'mes_order_status', NULL, 'default', 'N', '0', 'admin', '2022-05-09 10:39:45', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (312, 5, '已完成', 'FINISHED', 'mes_order_status', NULL, 'default', 'N', '0', 'admin', '2022-05-09 10:40:07', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (313, 1, '客户订单', 'ORDER', 'mes_workorder_sourcetype', NULL, 'default', 'N', '0', 'admin', '2022-05-09 11:23:47', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (314, 2, '库存备货', 'STORE', 'mes_workorder_sourcetype', NULL, 'default', 'N', '0', 'admin', '2022-05-09 11:24:04', 'admin', '2022-05-09 11:24:24', NULL);
INSERT INTO `sys_dict_data` VALUES (315, 1, '定期维护', 'REGULAR', 'mes_mainten_type', NULL, 'default', 'N', '0', 'admin', '2022-05-10 23:40:57', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (316, 2, '按使用次数维护', 'USAGE', 'mes_mainten_type', NULL, 'default', 'N', '0', 'admin', '2022-05-10 23:41:31', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (317, 1, '在库', 'STORE', 'mes_tool_status', NULL, 'default', 'N', '0', 'admin', '2022-05-11 20:51:13', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (318, 2, '被领用', 'ISSUE', 'mes_tool_status', NULL, 'default', 'N', '0', 'admin', '2022-05-11 20:51:36', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (319, 3, '报废', 'SCRAP', 'mes_tool_status', NULL, 'default', 'N', '0', 'admin', '2022-05-11 20:52:02', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (320, 4, '维修中', 'REPARE', 'mes_tool_status', NULL, 'default', 'N', '0', 'admin', '2022-05-11 20:52:20', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (321, 1, 'S-to-S', 'SS', 'mes_link_type', NULL, 'default', 'N', '0', 'admin', '2022-05-13 21:51:28', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (322, 2, 'F-to-F', 'FF', 'mes_link_type', NULL, 'default', 'N', '0', 'admin', '2022-05-13 21:51:51', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (323, 3, 'S-to-F', 'SF', 'mes_link_type', NULL, 'default', 'N', '0', 'admin', '2022-05-13 21:52:05', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (324, 4, 'F-to-S', 'FS', 'mes_link_type', NULL, 'default', 'N', '0', 'admin', '2022-05-13 21:52:21', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (325, 1, '秒', 'SECOND', 'mes_time_type', NULL, 'default', 'N', '0', 'admin', '2022-05-14 08:41:14', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (326, 2, '分钟', 'MINUTE', 'mes_time_type', NULL, 'default', 'N', '0', 'admin', '2022-05-14 08:41:25', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (327, 3, '小时', 'HOUR', 'mes_time_type', NULL, 'default', 'N', '0', 'admin', '2022-05-14 08:41:46', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (328, 4, '天', 'DAY', 'mes_time_type', NULL, 'default', 'N', '0', 'admin', '2022-05-14 08:41:57', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (329, 5, '周', 'WEEK', 'mes_time_type', NULL, 'default', 'N', '0', 'admin', '2022-05-14 08:42:12', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (330, 6, '月', 'MONTH', 'mes_time_type', NULL, 'default', 'N', '0', 'admin', '2022-05-14 08:42:26', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (331, 1, '尺寸', 'SIZE', 'mes_index_type', NULL, 'default', 'N', '0', 'admin', '2022-05-17 21:26:34', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (332, 2, '外观', 'APPEARANCE', 'mes_index_type', NULL, 'default', 'N', '0', 'admin', '2022-05-17 21:28:19', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (333, 3, '重量', 'WEIGHT', 'mes_index_type', NULL, 'default', 'N', '0', 'admin', '2022-05-17 21:28:31', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (334, 4, '性能', 'PERFORMANCE', 'mes_index_type', NULL, 'default', 'N', '0', 'admin', '2022-05-17 21:29:28', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (335, 5, '成分', 'COMPONENT', 'mes_index_type', NULL, 'default', 'N', '0', 'admin', '2022-05-17 21:30:34', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (336, 1, '[来料检验]', 'IQC', 'mes_qc_type', NULL, 'default', 'N', '0', 'admin', '2022-05-18 09:38:58', 'admin', '2022-05-18 10:38:43', NULL);
INSERT INTO `sys_dict_data` VALUES (337, 3, '[首检]', 'FIRST', 'mes_qc_type', NULL, 'default', 'N', '0', 'admin', '2022-05-18 09:39:19', 'admin', '2025-03-20 15:54:00', NULL);
INSERT INTO `sys_dict_data` VALUES (338, 4, '[末检]', 'FINAL', 'mes_qc_type', NULL, 'default', 'N', '0', 'admin', '2022-05-18 09:39:46', 'admin', '2025-03-20 15:54:10', NULL);
INSERT INTO `sys_dict_data` VALUES (339, 5, '[巡检]', 'PATROL', 'mes_qc_type', NULL, 'default', 'N', '0', 'admin', '2022-05-18 09:40:05', 'admin', '2025-03-20 15:54:15', NULL);
INSERT INTO `sys_dict_data` VALUES (340, 7, '[成品检验]', 'FQC', 'mes_qc_type', NULL, 'default', 'N', '0', 'admin', '2022-05-18 09:40:27', 'admin', '2025-03-20 15:54:28', NULL);
INSERT INTO `sys_dict_data` VALUES (341, 8, '[发货检验]', 'OQC', 'mes_qc_type', NULL, 'default', 'N', '0', 'admin', '2022-05-18 09:40:52', 'admin', '2025-03-20 15:54:33', NULL);
INSERT INTO `sys_dict_data` VALUES (342, 1, '致命缺陷', 'CR', 'mes_defect_level', NULL, 'default', 'N', '0', 'admin', '2022-05-19 10:24:05', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (343, 2, '严重缺陷', 'MAJ', 'mes_defect_level', NULL, 'default', 'N', '0', 'admin', '2022-05-19 10:24:20', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (344, 3, '轻微缺陷', 'MIN', 'mes_defect_level', NULL, 'default', 'N', '0', 'admin', '2022-05-19 10:24:33', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (345, 1, '检验通过', 'ACCEPT', 'mes_qc_result', NULL, 'default', 'N', '0', 'admin', '2022-05-19 16:38:07', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (346, 2, '检验不通过', 'REJECT', 'mes_qc_result', NULL, 'default', 'N', '0', 'admin', '2022-05-19 16:38:22', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (347, 1, '白班', 'SINGLE', 'mes_shift_type', NULL, 'default', 'N', '0', 'admin', '2022-06-06 21:33:56', 'admin', '2022-06-06 21:35:05', NULL);
INSERT INTO `sys_dict_data` VALUES (348, 2, '两班倒', 'SHIFT_TWO', 'mes_shift_type', NULL, 'default', 'N', '0', 'admin', '2022-06-06 21:34:19', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (349, 3, '三班倒', 'SHIFT_THREE', 'mes_shift_type', NULL, 'default', 'N', '0', 'admin', '2022-06-06 21:34:38', 'admin', '2022-06-06 21:34:45', NULL);
INSERT INTO `sys_dict_data` VALUES (350, 1, '按天', 'DAY', 'mes_shift_method', NULL, 'default', 'N', '0', 'admin', '2022-06-06 21:39:51', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (351, 2, '按周', 'WEEK', 'mes_shift_method', NULL, 'default', 'N', '0', 'admin', '2022-06-06 21:40:14', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (352, 3, '按月', 'MONTH', 'mes_shift_method', NULL, 'default', 'N', '0', 'admin', '2022-06-06 21:40:31', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (353, 4, '按季度', 'QUARTER', 'mes_shift_method', NULL, 'default', 'N', '0', 'admin', '2022-06-06 21:40:55', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (354, 1, '注塑', 'ZS', 'mes_calendar_type', NULL, 'default', 'N', '0', 'admin', '2022-06-08 13:27:23', 'admin', '2022-06-11 21:05:57', NULL);
INSERT INTO `sys_dict_data` VALUES (355, 2, '机加工', 'CNC', 'mes_calendar_type', NULL, 'default', 'N', '0', 'admin', '2022-06-08 13:27:35', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (356, 3, '组装', 'ZZ', 'mes_calendar_type', NULL, 'default', 'N', '0', 'admin', '2022-06-08 13:27:55', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (357, 4, '仓库', 'CK', 'mes_calendar_type', NULL, 'default', 'N', '0', 'admin', '2022-06-08 13:28:24', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (358, 1, '设备点检', 'CHECK', 'mes_dvsubject_type', NULL, 'default', 'N', '0', 'admin', '2022-06-16 16:50:51', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (359, 2, '设备保养', 'MAINTEN', 'mes_dvsubject_type', NULL, 'default', 'N', '0', 'admin', '2022-06-16 16:51:19', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (360, 1, '小时', 'HOUR', 'mes_cycle_type', NULL, 'default', 'N', '0', 'admin', '2022-06-16 20:47:54', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (361, 2, '天', 'DAY', 'mes_cycle_type', NULL, 'default', 'N', '0', 'admin', '2022-06-16 20:49:07', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (362, 3, '周', 'WEEK', 'mes_cycle_type', NULL, 'default', 'N', '0', 'admin', '2022-06-16 20:49:21', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (363, 4, '月', 'MONTH', 'mes_cycle_type', NULL, 'default', 'N', '0', 'admin', '2022-06-16 20:49:32', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (364, 5, '季度', 'QUARTER', 'mes_cycle_type', NULL, 'default', 'N', '0', 'admin', '2022-06-16 20:50:00', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (365, 6, '年', 'YEAR', 'mes_cycle_type', NULL, 'default', 'N', '0', 'admin', '2022-06-16 20:50:22', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (366, 1, '设备点检计划', 'CHECK', 'dv_plan_type', NULL, 'default', 'N', '0', 'admin', '2022-06-19 17:03:44', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (367, 2, '设备保养计划', 'MAINTEN', 'dv_plan_type', NULL, 'default', 'N', '0', 'admin', '2022-06-19 17:03:56', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (368, 1, 'QR二维码', 'QR_CODE', 'mes_barcode_formart', NULL, 'default', 'N', '0', 'admin', '2022-08-01 11:06:50', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (369, 2, 'EAN码', 'EAN_CODE', 'mes_barcode_formart', NULL, 'default', 'N', '0', 'admin', '2022-08-01 11:07:40', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (370, 3, 'UPC码', 'UPC_CODE', 'mes_barcode_formart', NULL, 'default', 'N', '0', 'admin', '2022-08-01 11:07:58', 'admin', '2022-08-01 11:08:03', NULL);
INSERT INTO `sys_dict_data` VALUES (371, 1, '物料产品条码', 'ITEM', 'mes_barcode_type', NULL, 'default', 'N', '0', 'admin', '2022-08-01 11:09:07', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (372, 2, '小包装条码', 'BOX_SMALL', 'mes_barcode_type', NULL, 'default', 'N', '0', 'admin', '2022-08-01 11:10:19', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (373, 3, '库存条码', 'STOCK', 'mes_barcode_type', NULL, 'default', 'N', '0', 'admin', '2022-08-01 11:10:40', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (374, 1, '修复成功', 'SUCCESS', 'mes_repair_result', NULL, 'default', 'N', '0', 'admin', '2022-08-06 11:27:48', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (375, 2, '报废', 'SCRAP', 'mes_repair_result', NULL, 'default', 'N', '0', 'admin', '2022-08-06 11:28:18', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (376, 0, '汉族', '0', 'nation_type', NULL, 'default', 'N', '0', 'admin', '2022-08-15 14:26:52', 'admin', '2022-08-15 14:27:35', NULL);
INSERT INTO `sys_dict_data` VALUES (377, 1, '首检', 'FIRST', 'mes_ipqc_type', NULL, 'default', 'N', '0', 'admin', '2022-08-29 20:19:20', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (378, 2, '末检', 'FINAL', 'mes_ipqc_type', NULL, 'default', 'N', '0', 'admin', '2022-08-29 20:19:38', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (379, 3, '自检', 'SELF', 'mes_ipqc_type', NULL, 'default', 'N', '0', 'admin', '2022-08-29 20:19:52', 'admin', '2022-08-29 20:19:57', NULL);
INSERT INTO `sys_dict_data` VALUES (380, 4, '巡检', 'PATROL', 'mes_ipqc_type', NULL, 'default', 'N', '0', 'admin', '2022-08-29 20:20:13', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (381, 5, '点检', 'CHECK', 'mes_ipqc_type', NULL, 'default', 'N', '0', 'admin', '2022-08-29 20:20:28', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (382, 6, '终检', 'FQC', 'mes_ipqc_type', NULL, 'default', 'N', '0', 'admin', '2022-08-29 20:20:44', 'admin', '2022-08-29 20:58:07', NULL);
INSERT INTO `sys_dict_data` VALUES (383, 1, '自行报工', 'SELF', 'mes_feedback_type', NULL, 'default', 'N', '0', 'admin', '2022-10-02 15:52:45', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (384, 2, '统一报工', 'UNI', 'mes_feedback_type', NULL, 'default', 'N', '0', 'admin', '2022-10-02 15:53:03', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (385, 1, '停机', 'STOP', 'mes_machinery_status', NULL, 'default', 'N', '0', 'admin', '2022-10-09 19:24:34', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (386, 2, '生产中', 'WORKING', 'mes_machinery_status', NULL, 'default', 'N', '0', 'admin', '2022-10-09 19:24:54', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (387, 3, '维修中', 'REPAIR', 'mes_machinery_status', NULL, 'default', 'N', '0', 'admin', '2022-10-09 19:25:28', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (388, 2, '[过程检验]', 'PQC', 'mes_qc_type', NULL, 'default', 'N', '0', 'admin', '2025-03-20 15:47:56', '', NULL, NULL);
INSERT INTO `sys_dict_data` VALUES (389, 6, '[自检]', 'SELF', 'mes_qc_type', NULL, 'default', 'N', '0', 'admin', '2025-03-20 15:48:39', '', NULL, NULL);


-- ----------------------------
-- 13、参数配置表
-- ----------------------------
drop table if exists sys_config;
create table sys_config (
  config_id         int(5)          not null auto_increment    comment '参数主键',
  config_name       varchar(100)    default ''                 comment '参数名称',
  config_key        varchar(100)    default ''                 comment '参数键名',
  config_value      varchar(500)    default ''                 comment '参数键值',
  config_type       char(1)         default 'N'                comment '系统内置（Y是 N否）',
  create_by         varchar(64)     default ''                 comment '创建者',
  create_time       datetime                                   comment '创建时间',
  update_by         varchar(64)     default ''                 comment '更新者',
  update_time       datetime                                   comment '更新时间',
  remark            varchar(500)    default null               comment '备注',
  primary key (config_id)
) engine=innodb auto_increment=100 comment = '参数配置表';

insert into sys_config values(1, '主框架页-默认皮肤样式名称',     'sys.index.skinName',            'skin-blue',     'Y', 'admin', sysdate(), '', null, '蓝色 skin-blue、绿色 skin-green、紫色 skin-purple、红色 skin-red、黄色 skin-yellow' );
insert into sys_config values(2, '用户管理-账号初始密码',         'sys.user.initPassword',         '123456',        'Y', 'admin', sysdate(), '', null, '初始化密码 123456' );
insert into sys_config values(3, '主框架页-侧边栏主题',           'sys.index.sideTheme',           'theme-dark',    'Y', 'admin', sysdate(), '', null, '深色主题theme-dark，浅色主题theme-light' );
insert into sys_config values(4, '账号自助-验证码开关',           'sys.account.captchaEnabled',    'false',          'Y', 'admin', sysdate(), '', null, '是否开启验证码功能（true开启，false关闭）');
insert into sys_config values(5, '账号自助-是否开启用户注册功能', 'sys.account.registerUser',      'false',         'Y', 'admin', sysdate(), '', null, '是否开启注册用户功能（true开启，false关闭）');


-- ----------------------------
-- 14、系统访问记录
-- ----------------------------
drop table if exists sys_logininfor;
create table sys_logininfor (
  info_id        bigint(20)     not null auto_increment   comment '访问ID',
  user_name      varchar(50)    default ''                comment '用户账号',
  ipaddr         varchar(128)   default ''                comment '登录IP地址',
  login_location varchar(255)   default ''                comment '登录地点',
  browser        varchar(50)    default ''                comment '浏览器类型',
  os             varchar(50)    default ''                comment '操作系统',
  status         char(1)        default '0'               comment '登录状态（0成功 1失败）',
  msg            varchar(255)   default ''                comment '提示消息',
  login_time     datetime                                 comment '访问时间',
  primary key (info_id)
) engine=innodb auto_increment=100 comment = '系统访问记录';


-- ----------------------------
-- 15、定时任务调度表
-- ----------------------------
drop table if exists sys_job;
create table sys_job (
  job_id              bigint(20)    not null auto_increment    comment '任务ID',
  job_name            varchar(64)   default ''                 comment '任务名称',
  job_group           varchar(64)   default 'DEFAULT'          comment '任务组名',
  invoke_target       varchar(500)  not null                   comment '调用目标字符串',
  cron_expression     varchar(255)  default ''                 comment 'cron执行表达式',
  misfire_policy      varchar(20)   default '3'                comment '计划执行错误策略（1立即执行 2执行一次 3放弃执行）',
  concurrent          char(1)       default '1'                comment '是否并发执行（0允许 1禁止）',
  status              char(1)       default '0'                comment '状态（0正常 1暂停）',
  create_by           varchar(64)   default ''                 comment '创建者',
  create_time         datetime                                 comment '创建时间',
  update_by           varchar(64)   default ''                 comment '更新者',
  update_time         datetime                                 comment '更新时间',
  remark              varchar(500)  default ''                 comment '备注信息',
  primary key (job_id, job_name, job_group)
) engine=innodb auto_increment=100 comment = '定时任务调度表';

-- ----------------------------
-- 定时任务调度表 初始数据
-- ----------------------------
INSERT INTO `sys_job` VALUES (1, '系统默认（无参）', 'DEFAULT', 'ryTask.ryNoParams', '0/10 * * * * ?', '3', '1', '1', 'admin', '2023-05-04 07:50:35', '', '2023-10-30 16:52:25', '');
INSERT INTO `sys_job` VALUES (2, '系统默认（有参）', 'DEFAULT', 'ryTask.ryParams(\'ry\')', '0/15 * * * * ?', '3', '1', '1', 'admin', '2023-05-04 07:50:35', '', NULL, '');
INSERT INTO `sys_job` VALUES (3, '系统默认（多参）', 'DEFAULT', 'ryTask.ryMultipleParams(\'ry\', true, 2000L, 316.50D, 100)', '0/20 * * * * ?', '3', '1', '1', 'admin', '2023-05-04 07:50:35', '', NULL, '');
INSERT INTO `sys_job` VALUES (4, '入库单定时任务', 'DEFAULT', 'scheduleTask.selectWmsStockInIdList()', '0 0/15 * * * ?', '1', '1', '1', 'admin', '2024-07-10 13:23:21', 'admin', '2024-07-30 08:51:07', '');
INSERT INTO `sys_job` VALUES (5, '倒冲0点定时任务', 'DEFAULT', 'scheduleTask.selectZeroBackFlush()', '0 0 0 * * ?', '1', '1', '1', 'admin', '2024-07-29 10:36:53', 'admin', '2024-07-30 10:57:35', '');
INSERT INTO `sys_job` VALUES (6, '倒冲15分钟定时任务', 'DEFAULT', 'scheduleTask.selectFifteenMinutesBackFlush()', '0/5 * * * * ?', '1', '1', '1', 'admin', '2024-07-30 10:42:55', 'admin', '2025-01-03 13:20:49', '');
INSERT INTO `sys_job` VALUES (7, '接口扫描重读定时任务', 'DEFAULT', 'scheduleTask.updateInterfaceStatusBy()', '0 0 */2 * * ?', '1', '1', '1', 'admin', '2024-07-30 15:03:08', '', NULL, '');
INSERT INTO `sys_job` VALUES (8, '入库任务同步8点', 'DEFAULT', 'scheduleTask.u8TaskInAsync()', '0 0 8 * * ?', '1', '1', '1', 'admin', '2024-11-28 09:46:27', 'admin', '2024-11-28 09:56:24', '');
INSERT INTO `sys_job` VALUES (9, '入库任务同步22点', 'DEFAULT', 'scheduleTask.u8TaskInAsync()', '0 0 22 * * ?', '1', '1', '1', 'admin', '2024-11-28 09:47:34', 'admin', '2024-11-28 09:56:32', '');
INSERT INTO `sys_job` VALUES (10, '基础资料同步', 'DEFAULT', 'scheduleTask.u8BaseAsync()', '0 0 0 * * ?', '1', '1', '1', 'admin', '2024-11-28 10:10:36', '', NULL, '');
INSERT INTO `sys_job` VALUES (11, '入库任务同步关闭', 'DEFAULT', 'scheduleTask.u8TaskInCloseAsync()', '0 0 * * * ?', '1', '1', '1', 'admin', '2024-11-28 10:15:45', 'admin', '2024-11-28 10:17:07', '');

-- ----------------------------
-- 16、定时任务调度日志表
-- ----------------------------
drop table if exists sys_job_log;
create table sys_job_log (
  job_log_id          bigint(20)     not null auto_increment    comment '任务日志ID',
  job_name            varchar(64)    not null                   comment '任务名称',
  job_group           varchar(64)    not null                   comment '任务组名',
  invoke_target       varchar(500)   not null                   comment '调用目标字符串',
  job_message         varchar(500)                              comment '日志信息',
  status              char(1)        default '0'                comment '执行状态（0正常 1失败）',
  exception_info      varchar(2000)  default ''                 comment '异常信息',
  create_time         datetime                                  comment '创建时间',
  primary key (job_log_id)
) engine=innodb comment = '定时任务调度日志表';


-- ----------------------------
-- 17、通知公告表
-- ----------------------------
drop table if exists sys_notice;
create table sys_notice (
  notice_id         int(4)          not null auto_increment    comment '公告ID',
  notice_title      varchar(50)     not null                   comment '公告标题',
  notice_type       char(1)         not null                   comment '公告类型（1通知 2公告）',
  notice_content    longblob        default null               comment '公告内容',
  status            char(1)         default '0'                comment '公告状态（0正常 1关闭）',
  create_by         varchar(64)     default ''                 comment '创建者',
  create_time       datetime                                   comment '创建时间',
  update_by         varchar(64)     default ''                 comment '更新者',
  update_time       datetime                                   comment '更新时间',
  remark            varchar(255)    default null               comment '备注',
  primary key (notice_id)
) engine=innodb auto_increment=10 comment = '通知公告表';


-- ----------------------------
-- 18、代码生成业务表
-- ----------------------------
drop table if exists gen_table;
create table gen_table (
  table_id          bigint(20)      not null auto_increment    comment '编号',
  table_name        varchar(200)    default ''                 comment '表名称',
  table_comment     varchar(500)    default ''                 comment '表描述',
  sub_table_name    varchar(64)     default null               comment '关联子表的表名',
  sub_table_fk_name varchar(64)     default null               comment '子表关联的外键名',
  class_name        varchar(100)    default ''                 comment '实体类名称',
  tpl_category      varchar(200)    default 'crud'             comment '使用的模板（crud单表操作 tree树表操作）',
  package_name      varchar(100)                               comment '生成包路径',
  module_name       varchar(30)                                comment '生成模块名',
  business_name     varchar(30)                                comment '生成业务名',
  function_name     varchar(50)                                comment '生成功能名',
  function_author   varchar(50)                                comment '生成功能作者',
  gen_type          char(1)         default '0'                comment '生成代码方式（0zip压缩包 1自定义路径）',
  gen_path          varchar(200)    default '/'                comment '生成路径（不填默认项目路径）',
  options           varchar(1000)                              comment '其它生成选项',
  create_by         varchar(64)     default ''                 comment '创建者',
  create_time 	    datetime                                   comment '创建时间',
  update_by         varchar(64)     default ''                 comment '更新者',
  update_time       datetime                                   comment '更新时间',
  remark            varchar(500)    default null               comment '备注',
  primary key (table_id)
) engine=innodb auto_increment=1 comment = '代码生成业务表';


-- ----------------------------
-- 19、代码生成业务表字段
-- ----------------------------
drop table if exists gen_table_column;
create table gen_table_column (
  column_id         bigint(20)      not null auto_increment    comment '编号',
  table_id          varchar(64)                                comment '归属表编号',
  column_name       varchar(200)                               comment '列名称',
  column_comment    varchar(500)                               comment '列描述',
  column_type       varchar(100)                               comment '列类型',
  java_type         varchar(500)                               comment 'JAVA类型',
  java_field        varchar(200)                               comment 'JAVA字段名',
  is_pk             char(1)                                    comment '是否主键（1是）',
  is_increment      char(1)                                    comment '是否自增（1是）',
  is_required       char(1)                                    comment '是否必填（1是）',
  is_insert         char(1)                                    comment '是否为插入字段（1是）',
  is_edit           char(1)                                    comment '是否编辑字段（1是）',
  is_list           char(1)                                    comment '是否列表字段（1是）',
  is_query          char(1)                                    comment '是否查询字段（1是）',
  query_type        varchar(200)    default 'EQ'               comment '查询方式（等于、不等于、大于、小于、范围）',
  html_type         varchar(200)                               comment '显示类型（文本框、文本域、下拉框、复选框、单选框、日期控件）',
  dict_type         varchar(200)    default ''                 comment '字典类型',
  sort              int                                        comment '排序',
  create_by         varchar(64)     default ''                 comment '创建者',
  create_time 	    datetime                                   comment '创建时间',
  update_by         varchar(64)     default ''                 comment '更新者',
  update_time       datetime                                   comment '更新时间',
  primary key (column_id)
) engine=innodb auto_increment=1 comment = '代码生成业务表字段';
