-- 部门关系表
CREATE TABLE `sys_user_dept`
(
    `user_id` char(19) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '用户标识',
    `dept_id` char(19) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '部门标识',
    UNIQUE KEY `uni_idx` (`user_id`,`dept_id`) USING BTREE COMMENT '联合唯一索引'
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='部门关系表';
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (1, 2);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (2, 2);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (17, 2);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (18, 2);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (21, 2);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (32, 2);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (33, 2);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (35, 2);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (19, 5);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (20, 5);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (24, 5);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (25, 5);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (26, 5);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (27, 5);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (28, 5);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (29, 5);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (30, 5);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (16, 18);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (22, 18);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (23, 18);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (31, 18);
INSERT INTO `sys_user_dept`(`user_id`, `dept_id`)
VALUES (34, 18);

-- 用户表
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user`
(
    `user_id`           varchar(31) COLLATE utf8_bin                     NOT NULL COMMENT '用户标识',
    `username`          varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '登录账号',
    `person_name`       varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '姓名',
    `gender`            varchar(2) CHARACTER SET utf8 COLLATE utf8_bin   DEFAULT NULL COMMENT '性别',
    `phone`             varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '电话',
    `email`             varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '电子邮箱',
    `avatar_name`       varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '头像地址',
    `avatar_path`       varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '头像真实路径',
    `password`          varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '密码',
    `is_admin`          tinyint(1) DEFAULT NULL COMMENT '是否为admin账号',
    `is_used`           tinyint(1) NOT NULL DEFAULT '1' COMMENT '是否启用',
    `pwd_reset_user_id` varchar(31) COLLATE utf8_bin                     DEFAULT NULL COMMENT '密码重置者',
    `pwd_reset_time`    datetime                                         DEFAULT NULL COMMENT '密码重置时间',
    `create_id`         varchar(31) COLLATE utf8_bin                     DEFAULT NULL COMMENT '创建人标识',
    `create_name`       varchar(20) CHARACTER SET utf8 COLLATE utf8_bin  DEFAULT NULL COMMENT '创建人',
    `create_time`       datetime                                         DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',
    `update_id`         varchar(31) COLLATE utf8_bin                     DEFAULT NULL COMMENT '修改人标识',
    `update_name`       varchar(20) CHARACTER SET utf8 COLLATE utf8_bin  DEFAULT NULL COMMENT '修改人',
    `update_time`       datetime                                         DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',
    `extperson_id`      varchar(50) CHARACTER SET utf8 COLLATE utf8_bin  DEFAULT NULL COMMENT '外部人员标识',
    `extuser_id`        varchar(50) CHARACTER SET utf8 COLLATE utf8_bin  DEFAULT NULL COMMENT '外部用户标识',
    PRIMARY KEY (`user_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='用户表';
INSERT INTO `sys_user`(`user_id`, `username`, `person_name`, `gender`, `phone`, `email`, `avatar_name`, `avatar_path`,
                       `password`, `is_admin`, `is_used`, `create_name`, `update_name`, `pwd_reset_time`, `create_time`,
                       `update_time`, `create_id`, `update_id`)
VALUES (1, 'admin', '管理员', '男', '18888888888', '201507802@qq.com', 'avatar-20200806032259161.png',
        '/Users/jie/Documents/work/me/admin/eladmin/~/avatar/avatar-20200806032259161.png',
        'c4457adc568049cc0074615f095033ae', b'1', 1, NULL, 'admin', '2022-12-05 11:54:33', '2018-08-23 09:11:56',
        '2020-09-05 10:43:31', 1, NULL);
INSERT INTO `sys_user`(`user_id`, `username`, `person_name`, `gender`, `phone`, `email`, `avatar_name`, `avatar_path`,
                       `password`, `is_admin`, `is_used`, `create_name`, `update_name`, `pwd_reset_time`, `create_time`,
                       `update_time`, `create_id`, `update_id`)
VALUES (2, 'default', '默认用户', '男', '18888888888', NULL, NULL, NULL, '', b'0', 1, NULL, 'admin', NULL,
        '2018-08-23 09:11:56', '2020-09-05 10:43:31', 1, NULL);
INSERT INTO `sys_user`(`user_id`, `username`, `person_name`, `gender`, `phone`, `email`, `avatar_name`, `avatar_path`,
                       `password`, `is_admin`, `is_used`, `create_name`, `update_name`, `pwd_reset_time`, `create_time`,
                       `update_time`, `create_id`, `update_id`)
VALUES (16, '88540521', '汪东升', '男', NULL, NULL, NULL, NULL, 'f52020dca765fd3943ed40a615dc2c5c', b'0', 1, 'System',
        'System', NULL, '2022-12-01 09:46:10', '2022-12-02 09:48:57', 1, NULL);
INSERT INTO `sys_user`(`user_id`, `username`, `person_name`, `gender`, `phone`, `email`, `avatar_name`, `avatar_path`,
                       `password`, `is_admin`, `is_used`, `create_name`, `update_name`, `pwd_reset_time`, `create_time`,
                       `update_time`, `create_id`, `update_id`)
VALUES (17, '88540154', '彭明清', '男', NULL, NULL, NULL, NULL, 'f52020dca765fd3943ed40a615dc2c5c', b'0', 1, 'System',
        'System', NULL, '2022-12-01 09:47:23', '2022-12-22 14:07:34', 1, NULL);
INSERT INTO `sys_user`(`user_id`, `username`, `person_name`, `gender`, `phone`, `email`, `avatar_name`, `avatar_path`,
                       `password`, `is_admin`, `is_used`, `create_name`, `update_name`, `pwd_reset_time`, `create_time`,
                       `update_time`, `create_id`, `update_id`)
VALUES (18, '88540060', '高小盼', '男', NULL, NULL, NULL, NULL, 'f52020dca765fd3943ed40a615dc2c5c', b'0', 1, 'System',
        'System', NULL, '2022-12-02 09:45:00', '2022-12-02 09:45:00', 1, NULL);
INSERT INTO `sys_user`(`user_id`, `username`, `person_name`, `gender`, `phone`, `email`, `avatar_name`, `avatar_path`,
                       `password`, `is_admin`, `is_used`, `create_name`, `update_name`, `pwd_reset_time`, `create_time`,
                       `update_time`, `create_id`, `update_id`)
VALUES (19, '88540369', '王天山', '男', NULL, NULL, NULL, NULL, 'f52020dca765fd3943ed40a615dc2c5c', b'0', 1, 'System',
        'System', NULL, '2022-12-02 09:45:53', '2022-12-02 09:48:38', 1, NULL);
INSERT INTO `sys_user`(`user_id`, `username`, `person_name`, `gender`, `phone`, `email`, `avatar_name`, `avatar_path`,
                       `password`, `is_admin`, `is_used`, `create_name`, `update_name`, `pwd_reset_time`, `create_time`,
                       `update_time`, `create_id`, `update_id`)
VALUES (20, '88540168', '梁万荣', '男', NULL, NULL, NULL, NULL, 'f52020dca765fd3943ed40a615dc2c5c', b'0', 1, 'System',
        'System', NULL, '2022-12-02 09:48:21', '2022-12-02 09:48:21', 1, NULL);
INSERT INTO `sys_user`(`user_id`, `username`, `person_name`, `gender`, `phone`, `email`, `avatar_name`, `avatar_path`,
                       `password`, `is_admin`, `is_used`, `create_name`, `update_name`, `pwd_reset_time`, `create_time`,
                       `update_time`, `create_id`, `update_id`)
VALUES (21, '88540566', '张龙龙', '男', NULL, NULL, NULL, NULL, 'f52020dca765fd3943ed40a615dc2c5c', b'0', 1, 'System',
        'System', NULL, '2022-12-02 09:50:51', '2022-12-02 09:50:51', 1, NULL);
INSERT INTO `sys_user`(`user_id`, `username`, `person_name`, `gender`, `phone`, `email`, `avatar_name`, `avatar_path`,
                       `password`, `is_admin`, `is_used`, `create_name`, `update_name`, `pwd_reset_time`, `create_time`,
                       `update_time`, `create_id`, `update_id`)
VALUES (22, '88541303', '林立洲', '男', NULL, NULL, NULL, NULL, 'f52020dca765fd3943ed40a615dc2c5c', b'0', 1, 'System',
        'System', NULL, '2022-12-02 10:09:24', '2022-12-02 10:09:24', 1, NULL);
INSERT INTO `sys_user`(`user_id`, `username`, `person_name`, `gender`, `phone`, `email`, `avatar_name`, `avatar_path`,
                       `password`, `is_admin`, `is_used`, `create_name`, `update_name`, `pwd_reset_time`, `create_time`,
                       `update_time`, `create_id`, `update_id`)
VALUES (23, '88540302', '曾发玲', '男', NULL, NULL, NULL, NULL, 'f52020dca765fd3943ed40a615dc2c5c', b'0', 1, 'System',
        'System', NULL, '2022-12-02 10:09:55', '2022-12-02 10:09:55', 1, NULL);
INSERT INTO `sys_user`(`user_id`, `username`, `person_name`, `gender`, `phone`, `email`, `avatar_name`, `avatar_path`,
                       `password`, `is_admin`, `is_used`, `create_name`, `update_name`, `pwd_reset_time`, `create_time`,
                       `update_time`, `create_id`, `update_id`)
VALUES (24, '88541643', '甄亮霞', '女', NULL, NULL, NULL, NULL, '28e09b3a21d6d5e2cc00ae725c61c233', b'0', 1, 'System',
        'System', '2022-12-20 20:53:49', '2022-12-04 15:41:14', '2022-12-04 15:41:14', 1, NULL);
INSERT INTO `sys_user`(`user_id`, `username`, `person_name`, `gender`, `phone`, `email`, `avatar_name`, `avatar_path`,
                       `password`, `is_admin`, `is_used`, `create_name`, `update_name`, `pwd_reset_time`, `create_time`,
                       `update_time`, `create_id`, `update_id`)
VALUES (25, '88541932', '朱小宁', '男', NULL, NULL, NULL, NULL, 'aafb322898a8c49aea83041d71868c34', b'0', 1, 'System',
        'System', '2022-12-17 17:17:12', '2022-12-04 15:42:09', '2022-12-04 15:42:09', 1, NULL);
INSERT INTO `sys_user`(`user_id`, `username`, `person_name`, `gender`, `phone`, `email`, `avatar_name`, `avatar_path`,
                       `password`, `is_admin`, `is_used`, `create_name`, `update_name`, `pwd_reset_time`, `create_time`,
                       `update_time`, `create_id`, `update_id`)
VALUES (26, '88541972', '颜周鲁', '男', NULL, NULL, NULL, NULL, 'c62ab3a7db00bb0a41270ae4933062bb', b'0', 1, 'System',
        'System', '2022-12-05 15:14:51', '2022-12-04 15:42:43', '2022-12-04 15:42:43', 1, NULL);
INSERT INTO `sys_user`(`user_id`, `username`, `person_name`, `gender`, `phone`, `email`, `avatar_name`, `avatar_path`,
                       `password`, `is_admin`, `is_used`, `create_name`, `update_name`, `pwd_reset_time`, `create_time`,
                       `update_time`, `create_id`, `update_id`)
VALUES (27, '88540245', '田晓英', '女', '18919831471', NULL, NULL, NULL, 'cfdddd828134b157e82760390c159cbe', b'0', 1,
        'System', 'System', '2022-12-18 17:31:25', '2022-12-04 15:43:01', '2022-12-18 17:32:33', 1, NULL);
INSERT INTO `sys_user`(`user_id`, `username`, `person_name`, `gender`, `phone`, `email`, `avatar_name`, `avatar_path`,
                       `password`, `is_admin`, `is_used`, `create_name`, `update_name`, `pwd_reset_time`, `create_time`,
                       `update_time`, `create_id`, `update_id`)
VALUES (28, '88541240', '祁复秀', '男', '17352283290', NULL, NULL, NULL, '060ed1f34df1e604b7eaa86491a26716', b'0', 1,
        'System', 'System', '2022-12-20 20:02:45', '2022-12-04 15:43:43', '2022-12-04 17:29:33', 1, NULL);
INSERT INTO `sys_user`(`user_id`, `username`, `person_name`, `gender`, `phone`, `email`, `avatar_name`, `avatar_path`,
                       `password`, `is_admin`, `is_used`, `create_name`, `update_name`, `pwd_reset_time`, `create_time`,
                       `update_time`, `create_id`, `update_id`)
VALUES (29, '88541242', '刘武能', '男', NULL, NULL, NULL, NULL, '999dacac48f973c6845ed228298250c7', b'0', 1, 'System',
        'System', '2022-12-17 18:14:52', '2022-12-14 13:58:16', '2022-12-14 13:58:16', 1, NULL);

-- 部门 表结构修改
alter table `sys_dept`
    ADD COLUMN `code` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '部门编号';
alter table `sys_dept`
    ADD COLUMN `ext_id` varchar(255) DEFAULT NULL;
alter table `sys_dept`
    ADD COLUMN `create_id` bigint DEFAULT 1;
alter table `sys_dept`
    ADD COLUMN `update_id` char(19) DEFAULT NULL;
alter table `sys_dept` CHANGE `dept_id` `dept_id` char (19) NOT NULL COMMENT 'ID';
alter table `sys_dept` CHANGE `enabled` `is_used` tinyint(1) NOT NULL COMMENT '状态';
alter table `sys_dept` CHANGE `create_by` `create_name` varchar (255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建者';
alter table `sys_dept` CHANGE `update_by` `update_name` varchar (255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '修改者';

-- sys_menu
alter table `sys_menu` CHANGE `menu_id` `menu_id` char (19) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '菜单标识';
alter table `sys_menu` CHANGE `pid` `pid` char (19) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '上级菜单ID';
alter table `sys_menu`
    ADD COLUMN `system_type` varchar(255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '所属系统';
alter table `sys_menu` CHANGE `i_frame` `iframe` tinyint(1) DEFAULT NULL COMMENT '是否外链';
alter table `sys_menu`
    ADD COLUMN `create_id` bigint DEFAULT 1;
alter table `sys_menu`
    ADD COLUMN `category` char(1) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '菜单分类';
alter table `sys_menu`
    ADD COLUMN `update_id` char(19) DEFAULT NULL;
alter table `sys_menu` CHANGE `create_by` `create_name` varchar (255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '创建者';
alter table `sys_menu` CHANGE `update_by` `update_name` varchar (255) CHARACTER SET utf8 COLLATE utf8_general_ci DEFAULT NULL COMMENT '修改者';
alter table `sys_menu` CHANGE `name` `component_name` varchar (255) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '组件名称';
ALTER TABLE `sys_menu` DROP INDEX uniq_name;
ALTER TABLE `sys_menu` DROP INDEX uniq_title;
-- 初始化数据
INSERT INTO `sys_menu`(`menu_id`, `pid`, `sub_count`, `type`, `system_type`, `category`, `title`, `component_name`,
                       `component`, `menu_sort`, `icon`, `path`, `iframe`, `cache`, `hidden`, `permission`, `create_id`,
                       `create_name`, `create_time`, `update_id`, `update_name`, `update_time`)
VALUES ('1324783485328', NULL, 7, '1', '1', '', 'LMS系统', '', '', 1, 'system', 'system', 0, 0, 0, '', NULL, '',
        '2022-12-20 09:54:42', NULL, '', '2022-12-20 09:54:54');
update sys_menu
set pid = '1324783485328'
where pid is null
  and menu_id <> '1324783485328';
update sys_menu
set system_type =1;
-- sys_dict
DROP TABLE IF EXISTS `sys_dict`;
CREATE TABLE `sys_dict`
(
    `dict_id`     char(19) CHARACTER SET utf8 COLLATE utf8_bin    NOT NULL COMMENT '字典标识',
    `code`        varchar(30) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '编码',
    `name`        varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '名称',
    `label`       varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '字典标签',
    `value`       varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '字典值',
    `dict_sort`   decimal(5, 0)                                   DEFAULT NULL COMMENT '排序号',
    `dict_type`   varchar(20) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '字典类型',
    `para1`       varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '参数1',
    `para2`       varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '参数2',
    `para3`       varchar(50) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '参数3',
    `create_id`   char(19) CHARACTER SET utf8 COLLATE utf8_bin    DEFAULT NULL COMMENT '创建人',
    `create_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '创建人',
    `create_time` varchar(25) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '创建时间',
    `update_id`   char(19) CHARACTER SET utf8 COLLATE utf8_bin    DEFAULT NULL COMMENT '修改人',
    `update_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '修改人',
    `update_time` varchar(25) CHARACTER SET utf8 COLLATE utf8_bin DEFAULT NULL COMMENT '修改时间',
    PRIMARY KEY (`dict_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3 COLLATE=utf8_bin COMMENT='字典表';


INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('1', 'user_status', '用户状态', '激活', 'true', '1', '2019/10/27 20:31', '2019/10/27 20:31');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('2', 'user_status', '用户状态', '禁用', 'false', '2', '2019/10/27 20:31', '2019/10/27 20:31');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('3', 'dept_status', '部门状态', '启用', 'true', '1', '2019/10/27 20:31', '2019/10/27 20:31');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('4', 'dept_status', '部门状态', '停用', 'false', '2', '2019/10/27 20:31', '2019/10/27 20:31');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('5', 'job_status', '岗位状态', '启用', 'true', '1', '2019/10/27 20:31', '2019/10/27 20:31');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('6', 'job_status', '岗位状态', '停用', 'false', '2', '2019/10/27 20:31', '2019/10/27 20:31');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('52', 'sch_point_type', '点位类型', '点位', '1', '1', '2021/8/23 15:25', '2022/11/1 10:18');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('53', 'sch_point_type', '点位类型', '仓位', '2', '2', '2021/8/23 15:25', '2022/11/1 10:18');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('54', 'sch_point_status', '点位状态', '空位', '1', '1', '2021/8/23 15:31', '2022/11/1 10:17');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('55', 'sch_point_status', '点位状态', '空载具', '3', '3', '2021/8/23 15:32', '2022/11/1 10:17');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('56', 'sch_point_status', '点位状态', '有箱有料', '2', '2', '2021/8/23 15:32', '2022/11/1 16:00');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('61', 'd_lock_type', '锁定类型', '未锁定', '1', '1', '2021/8/24 9:27', '2022/11/1 10:16');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('62', 'd_lock_type', '锁定类型', '出入库锁', '2', '2', '2021/8/24 9:27', '2022/11/1 10:17');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('63', 'is_used', '是否启用', '启用', '1', '0', '2021/8/24 12:17', '2021/12/6 15:47');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('64', 'is_used', '是否启用', '禁用', '0', '1', '2021/8/24 12:17', '2021/12/6 15:47');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('73', 'base_data', '数据类别', '物料', '03', '3', '2021/12/7 18:07', '2021/12/7 18:07');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('74', 'base_data', '数据类别', '供应商', '04', '4', '2021/12/7 18:07', '2021/12/7 18:07');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('75', 'base_data', '数据类别', '客户', '05', '5', '2021/12/7 18:08', '2021/12/7 18:08');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('96', 'st_stor_type', '仓库性质', '常温库', '01', '1', '2021/12/8 17:09', '2021/12/8 17:09');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('97', 'st_stor_type', '仓库性质', '冷冻库', '02', '2', '2021/12/8 17:09', '2021/12/8 17:09');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('98', 'st_stor_type', '仓库性质', '冷藏库', '03', '3', '2021/12/8 17:09', '2021/12/8 17:09');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('99', 'st_sect_type', '库区类型', '主存区', '00', '1', '2021/12/9 9:24', '2021/12/9 9:24');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('100', 'st_sect_type', '库区类型', '暂存区', '01', '2', '2021/12/9 9:24', '2021/12/9 9:24');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('101', 'st_sect_type', '库区类型', '虚拟区', '09', '999', '2021/12/9 9:24', '2021/12/9 9:24');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('103', 'storagevehicle_type', '载具类型', '木托盘', '00', '2', '2021/12/9 9:33', '2022/8/8 15:16');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('104', 'storagevehicle_type', '载具类型', '铁托盘', '01', '3', '2021/12/9 9:33', '2022/8/8 15:17');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('111', 'IS_OR_NOT', '是否', '否', '0', '0', '2021/12/9 17:03', '2021/12/9 17:03');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('112', 'IS_OR_NOT', '是否', '是', '1', '2', '2021/12/9 17:03', '2021/12/9 17:03');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('127', 'ST_CREATE_MODE', '创建方式', 'PC产生', '01', '1', '2021/12/13 10:44', '2021/12/13 10:45');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('128', 'ST_CREATE_MODE', '创建方式', '终端产生', '02', '2', '2021/12/13 10:44', '2021/12/13 10:44');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('129', 'ST_CREATE_MODE', '创建方式', '外部接口产生', '03', '3', '2021/12/13 10:45', '2021/12/13 10:45');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('131', 'ST_PRIOR_LEVEL', '库存优先等级', '一级', '01', '999', '2021/12/20 13:46', '2021/12/20 13:46');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('132', 'ST_PRIOR_LEVEL', '库存优先等级', '二级', '02', '999', '2021/12/20 13:46', '2021/12/20 13:46');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('133', 'ST_PRIOR_LEVEL', '库存优先等级', '三级', '03', '999', '2021/12/20 13:46', '2021/12/20 13:46');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('155', 'sch_point_type', '点位类型', '共用', '3', '3', '2021/12/21 16:08', '2022/11/1 10:18');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('163', 'work_status', '执行状态', '未生成', '00', '1', '2021/12/23 10:17', '2021/12/23 10:17');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('164', 'work_status', '执行状态', '生成', '01', '2', '2021/12/23 10:17', '2021/12/23 10:17');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('165', 'work_status', '执行状态', '执行中', '02', '3', '2021/12/23 10:18', '2021/12/23 10:18');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('166', 'work_status', '执行状态', '完成', '99', '999', '2021/12/23 10:18', '2021/12/23 10:18');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('187', 'task_status', '任务状态', '生成', '01', '1', '2021/12/26 17:13', '2022/10/27 14:08');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('188', 'task_status', '任务状态', '确定起点', '02', '2', '2021/12/26 17:13', '2022/10/27 14:08');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('189', 'task_status', '任务状态', '确定终点', '03', '3', '2021/12/26 17:14', '2022/10/27 14:08');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('190', 'task_status', '任务状态', '完成', '07', '7', '2021/12/26 17:14', '2022/10/27 14:08');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('191', 'SCH_TASK_TYPE', '业务类型', '入库', '01', '1', '2021/12/27 9:18', '2021/12/27 9:18');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('192', 'SCH_TASK_TYPE', '业务类型', '出库', '02', '2', '2021/12/27 9:18', '2021/12/27 9:18');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('196', 'SCH_TASK_TYPE', '业务类型', '空盘入库', '03', '3', '2021/12/27 9:19', '2022/8/10 9:24');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('197', 'SCH_TASK_TYPE', '业务类型', '空盘出库', '04', '4', '2021/12/27 9:19', '2022/8/10 9:25');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('201', 'SCH_TASK_TYPE', '业务类型', '其他', '05', '5', '2021/12/27 9:20', '2022/8/10 9:25');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('226', 'is_usable', '是否可用', '可用', '1', '1', '2021/12/28 17:32', '2021/12/28 17:32');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('227', 'is_usable', '是否可用', '不可用', '0', '2', '2021/12/28 17:32', '2021/12/28 17:32');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('311', 'io_type', '出入类型', '入库', '0', '1', '2022/2/11 14:18', '2022/2/11 14:18');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('312', 'io_type', '出入类型', '出库', '1', '2', '2022/2/11 14:18', '2022/2/11 14:18');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('317', 'd_lock_type', '锁定类型', '空托盘出入库锁', '3', '3', '2022/2/17 10:21', '2022/11/1 10:17');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('318', 'd_lock_type', '锁定类型', '移库锁', '4', '4', '2022/2/17 10:22', '2022/11/1 10:17');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('321', 'd_lock_type', '锁定类型', '其它', '99', '99', '2022/2/17 10:23', '2022/11/1 10:17');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('328', 'work_status', '执行状态', '确认', '03', '999', '2022/3/5 14:07', '2022/3/5 14:07');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('364', 'base_data', '数据类别', '产品系列', '07', '7', '2022/5/20 16:47', '2022/5/20 16:47');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('383', 'task_finished_type', '任务完成类型', '自动', '00', '1', '2022/5/23 15:52', '2022/5/23 15:52');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('384', 'task_finished_type', '任务完成类型', '手动', '01', '2', '2022/5/23 15:52', '2022/5/23 15:52');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('385', 'ST_STOREMODE_TYPE', '仓库类型', '平库堆放', '01', '1', '2022/5/23 16:49', '2022/5/23 16:49');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('386', 'ST_STOREMODE_TYPE', '仓库类型', '多层货架', '02', '2', '2022/5/23 16:49', '2022/5/23 16:49');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('387', 'ST_STOREMODE_TYPE', '仓库类型', '立库', '03', '3', '2022/5/23 16:49', '2022/5/23 16:49');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('453', 'ST_INV_TYPE', '出入库单据类型', '成品入库', '001001', '999', '2022/6/15 14:43', '2022/6/15 14:43');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('454', 'ST_INV_TYPE', '出入库单据类型', '半成品入库', '001002', '999', '2022/6/15 14:44', '2022/6/15 14:44');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('455', 'ST_INV_TYPE', '出入库单据类型', '成品出库', '011001', '999', '2022/6/15 14:44', '2022/6/15 14:44');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('456', 'ST_INV_TYPE', '出入库单据类型', '半成品出库', '011002', '999', '2022/6/15 14:44', '2022/6/15 14:44');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('457', 'st_bill_status', '单据状态', '生成', '10', '999', '2022/6/15 16:52', '2022/6/15 16:52');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('458', 'st_bill_status', '单据状态', '分配', '20', '999', '2022/6/15 16:52', '2022/6/15 16:52');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('459', 'st_bill_status', '单据状态', '下发', '30', '999', '2022/6/15 16:52', '2022/6/15 16:52');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('460', 'st_bill_status', '单据状态', '执行中', '40', '999', '2022/6/15 16:53', '2022/6/15 16:53');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('461', 'st_bill_status', '单据状态', '确认', '50', '999', '2022/6/15 16:53', '2022/6/15 16:53');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('462', 'task_status', '任务状态', '起点和终点都确认', '04', '4', '2022/6/16 16:03', '2022/10/27 14:08');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('463', 'task_status', '任务状态', '下发', '05', '5', '2022/6/16 16:03', '2022/10/27 14:08');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('464', 'task_status', '任务状态', '执行中', '06', '6', '2022/6/16 16:04', '2022/10/27 14:08');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('477', 'ST_QUALITY_SCODE', '品质类型', '待检品', '00', '1', '2022/8/11 16:38', '2022/8/11 16:38');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('478', 'ST_QUALITY_SCODE', '品质类型', '合格品', '01', '2', '2022/8/11 16:38', '2022/8/11 16:38');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('479', 'ST_QUALITY_SCODE', '品质类型', '不合格', '02', '3', '2022/8/11 16:38', '2022/8/11 16:38');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('483', 'device_point_type', '设备点位类型', '空料位', '1', '1', '2022/9/1 16:28', '2022/9/1 16:28');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('484', 'device_point_type', '设备点位类型', '满料位', '2', '2', '2022/9/1 16:28', '2022/9/1 16:28');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('485', 'device_point_type', '设备点位类型', '上料位', '3', '3', '2022/9/1 16:28', '2022/9/1 16:28');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('489', 'product_area', '生产区域', 'A1', 'A1', '1', '2022/9/19 18:45', '2022/12/4 17:21');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('490', 'product_area', '生产区域', 'A2', 'A2', '2', '2022/9/19 18:45', '2022/12/4 17:21');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('491', 'product_area', '生产区域', 'A3', 'A3', '3', '2022/9/19 18:45', '2022/12/4 17:21');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('492', 'product_area', '生产区域', 'A4', 'A4', '4', '2022/9/19 18:45', '2022/12/4 17:21');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('493', 'point_location', '点位位置', '上', '0', '1', '2022/9/20 15:03', '2022/9/20 15:03');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('494', 'point_location', '点位位置', '下', '1', '2', '2022/9/20 15:03', '2022/9/20 15:03');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('495', 'product_status', '生箔工序工单状态', '开始', '01', '1', '2022/10/9 9:06', '2022/11/1 13:37');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('496', 'product_status', '生箔工序工单状态', '结束', '09', '99', '2022/10/9 9:06', '2022/11/1 13:38');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('497', 'sch_cool_ivt_status', '冷却库存状态', '未裹膜', '01', '10', '2022/10/9 9:31', '2022/10/9 9:49');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('498', 'sch_cool_ivt_status', '冷却库存状态', '已裹膜', '02', '20', '2022/10/9 9:31', '2022/12/13 15:23');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('499', 'sch_cool_ivt_status', '冷却库存状态', '已烘烤', '04', '40', '2022/10/9 9:31', '2022/12/13 15:24');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('500', 'sch_full_point_status', '满轴位状态', '空位', '01', '10', '2022/10/9 10:13', '2022/10/9 10:13');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('501', 'sch_full_point_status', '满轴位状态', '满轴', '02', '20', '2022/10/9 10:13', '2022/10/9 10:13');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('502', 'sch_empty_point_status', '空轴位状态', '空位', '01', '10', '2022/10/9 10:17', '2022/10/9 10:17');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('503', 'sch_empty_point_status', '空轴位状态', '空轴', '02', '20', '2022/10/9 10:17', '2022/10/9 15:36');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('504', 'order_type', '分切订单类型', '常规', '1', '1', '2022/10/9 14:11', '2022/10/9 14:11');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('505', 'order_type', '分切订单类型', '改制', '2', '2', '2022/10/9 14:11', '2022/10/9 14:11');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('508', 'ware_house', '来源卷位置', '线边库/线边呆滞库', '0', '1', '2022/10/9 16:08', '2022/10/9 16:08');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('509', 'ware_house', '来源卷位置', '半成品暂存库', '1', '2', '2022/10/9 16:08', '2022/10/9 16:08');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('510', 'ware_house', '来源卷位置', '立库', '2', '3', '2022/10/9 16:08', '2022/10/9 16:08');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('511', 'paper_tube_or_frp', '管件类型', '纸管', '1', '1', '2022/10/9 16:14', '2022/10/9 16:14');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('512', 'paper_tube_or_frp', '管件类型', 'FRP管', '2', '2', '2022/10/9 16:14', '2022/10/9 16:14');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('513', 'delivery_point_status', '分切输送线点位状态', '空', '01', '10', '2022/10/11 18:52', '2022/10/11 18:52');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('514', 'delivery_point_status', '分切输送线点位状态', '空载具', '02', '20', '2022/10/11 18:52',
        '2022/10/11 18:52');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('515', 'delivery_point_status', '分切输送线点位状态', '有气涨轴', '03', '30', '2022/10/11 18:52',
        '2022/10/11 18:52');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('516', 'delivery_point_status', '分切输送线点位状态', '有子卷', '04', '40', '2022/10/11 18:52',
        '2022/10/11 18:52');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('517', 'ST_INV_IN_TYPE', '入库单类型', '生产入库', '0001', '1', '2022/10/25 10:04', '2022/10/25 10:04');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('518', 'ST_INV_IN_TYPE', '入库单类型', '退货入库', '0002', '2', '2022/10/25 10:05', '2022/10/25 10:05');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('519', 'ST_INV_IN_TYPE', '入库单类型', '报废入库', '0003', '3', '2022/10/25 10:05', '2022/10/25 10:05');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('520', 'ST_INV_IN_TYPE', '入库单类型', '手工入库', '0009', '999', '2022/10/25 10:06', '2022/10/25 10:06');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('521', 'io_bill_status', '出入单据状态', '生成', '10', '1', '2022/10/25 16:33', '2022/10/25 16:33');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('522', 'io_bill_status', '出入单据状态', '提交', '20', '2', '2022/10/25 16:33', '2022/10/25 16:33');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('523', 'io_bill_status', '出入单据状态', '分配中', '30', '3', '2022/10/25 16:33', '2022/10/25 16:33');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('524', 'io_bill_status', '出入单据状态', '分配完', '40', '4', '2022/10/25 16:34', '2022/10/25 16:34');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('525', 'io_bill_status', '出入单据状态', '确认', '50', '5', '2022/10/25 16:34', '2022/10/25 16:34');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('526', 'io_bill_status', '出入单据状态', '完成', '99', '999', '2022/10/25 16:34', '2022/10/25 16:34');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('527', 'ST_INV_OUT_TYPE', '出库单类型', '发货出库', '1001', '1', '2022/10/27 11:00', '2022/10/28 14:48');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('528', 'ST_INV_OUT_TYPE', '出库单类型', '报废出库', '1002', '2', '2022/10/27 11:01', '2022/10/28 14:48');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('529', 'ST_INV_OUT_TYPE', '出库单类型', '改切出库', '1003', '3', '2022/10/27 11:01', '2022/10/28 14:48');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('530', 'ST_INV_OUT_TYPE', '出库单类型', '手工出库', '1009', '999', '2022/10/27 11:01', '2022/10/28 14:48');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('531', 'sub_package_relation', '子卷包装关系状态', '生成', '0', '10', '2022/10/28 13:22', '2022/10/28 13:22');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('532', 'sub_package_relation', '子卷包装关系状态', '包装', '1', '20', '2022/10/28 13:22', '2022/10/28 13:22');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('533', 'sub_package_relation', '子卷包装关系状态', '入库', '2', '30', '2022/10/28 13:22', '2022/10/28 13:22');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('534', 'sub_package_relation', '子卷包装关系状态', '出库', '3', '40', '2022/10/28 13:22', '2022/10/28 13:22');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('535', 'placement_type', '仓位放置类型', '双通', '01', '1', '2022/10/31 15:26', '2022/10/31 15:26');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('536', 'placement_type', '仓位放置类型', '左通', '02', '2', '2022/10/31 15:26', '2022/10/31 15:26');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('537', 'placement_type', '仓位放置类型', '右通', '03', '3', '2022/10/31 15:27', '2022/10/31 15:27');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('538', 'product_status', '生箔工序工单状态', '空轴搬出', '02', '2', '2022/11/1 13:37', '2022/11/1 13:37');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('539', 'product_status', '生箔工序工单状态', '确认下卷', '03', '3', '2022/11/1 13:37', '2022/11/1 13:37');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('540', 'product_status', '生箔工序工单状态', '下卷完成', '04', '4', '2022/11/1 13:37', '2022/11/1 13:37');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('541', 'sch_hot_point_status', '烘烤区库存状态', '空位', '01', '1', '2022/11/1 15:58', '2022/11/1 15:58');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('542', 'sch_hot_point_status', '烘烤区库存状态', '有料', '02', '2', '2022/11/1 15:58', '2022/11/1 15:58');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('543', 'check_bill_status', '盘点单据状态', '生成', '1', '1', '2022/11/7 14:08', '2022/11/7 14:08');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('544', 'check_bill_status', '盘点单据状态', '审核', '2', '2', '2022/11/7 14:08', '2022/11/7 14:08');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('545', 'check_bill_status', '盘点单据状态', '盘点中', '3', '3', '2022/11/7 14:08', '2022/11/7 14:08');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('546', 'check_bill_status', '盘点单据状态', '确认完成', '99', '999', '2022/11/7 14:08', '2022/11/7 14:08');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('547', 'ST_INV_TYPE_CK', '盘点单业务类型', '计划盘点', '1', '1', '2022/11/7 14:10', '2022/11/7 14:10');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('548', 'ST_INV_TYPE_CK', '盘点单业务类型', '临时盘点', '2', '2', '2022/11/7 14:10', '2022/11/7 14:10');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('549', 'check_dtl_status', '盘点单明细状态', '生成', '1', '1', '2022/11/7 15:14', '2022/11/7 15:14');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('550', 'check_dtl_status', '盘点单明细状态', '盘点中', '2', '2', '2022/11/7 15:14', '2022/11/7 15:14');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('551', 'check_dtl_status', '盘点单明细状态', '已盘点', '3', '3', '2022/11/7 15:15', '2022/11/7 15:15');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('552', 'check_dtl_status', '盘点单明细状态', '异常处理中', '4', '4', '2022/11/7 15:15', '2022/11/7 15:15');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('553', 'check_dtl_status', '盘点单明细状态', '异常处理完成', '5', '5', '2022/11/7 15:15', '2022/11/7 15:15');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('554', 'check_dtl_status', '盘点单明细状态', '确认完成', '99', '999', '2022/11/7 15:15', '2022/11/7 15:15');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('555', 'check_result', '盘点结果', '正常', '1', '1', '2022/11/7 16:31', '2022/11/7 16:31');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('556', 'check_result', '盘点结果', '盘亏', '2', '2', '2022/11/7 16:31', '2022/11/7 16:31');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('557', 'check_result', '盘点结果', '盘盈', '3', '3', '2022/11/7 16:31', '2022/11/7 16:31');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('558', 'move_bill_status', '移库单据状态', '生成', '10', '1', '2022/11/8 9:15', '2022/11/8 9:15');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('559', 'move_bill_status', '移库单据状态', '提交', '20', '2', '2022/11/8 9:15', '2022/11/8 9:15');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('560', 'move_bill_status', '移库单据状态', '执行中', '30', '3', '2022/11/8 9:16', '2022/11/8 9:16');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('561', 'move_bill_status', '移库单据状态', '完成', '99', '999', '2022/11/8 9:16', '2022/11/8 9:16');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('562', 'ST_INV_TYPE_MV', '移库类型', '出库移库', '21', '1', '2022/11/8 9:19', '2022/11/8 9:20');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('563', 'ST_INV_TYPE_MV', '移库类型', '手工移库', '29', '999', '2022/11/8 9:20', '2022/11/8 9:20');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('564', 'cut_product_status', '分切工单状态', '开始', '01', '1', '2022/11/11 14:42', '2022/11/11 14:42');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('565', 'cut_product_status', '分切工单状态', '配送中', '02', '2', '2022/11/11 14:42', '2022/11/11 14:42');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('566', 'cut_product_status', '分切工单状态', '配送完成', '03', '3', '2022/11/11 14:42', '2022/11/11 14:43');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('567', 'cut_product_status', '分切工单状态', '入站中', '04', '4', '2022/11/11 14:42', '2022/11/11 14:42');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('568', 'cut_product_status', '分切工单状态', '入站完成', '05', '5', '2022/11/11 14:43', '2022/11/11 14:43');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('569', 'cut_product_status', '分切工单状态', '出站中', '06', '6', '2022/11/11 14:43', '2022/11/11 14:43');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('570', 'cut_product_status', '分切工单状态', '结束', '09', '999', '2022/11/11 14:43', '2022/11/11 14:43');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('571', 'ST_INV_TYPE_CG', '库存转单类型', '备货转单', '2001', '1', '2022/11/19 23:30', '2022/11/19 23:30');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('572', 'ST_INV_TYPE_CG', '库存转单类型', '手动转单', '2002', '2', '2022/11/19 23:30', '2022/11/19 23:30');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('573', 'is_upload', '是否回传', '否', '0', '1', '2022/11/22 14:48', '2022/11/22 14:48');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('574', 'is_upload', '是否回传', '是', '1', '2', '2022/11/22 14:48', '2022/11/22 14:48');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('575', 'ST_INV_IN_TYPE', '入库单类型', '调拨入库', '0004', '4', '2022/12/1 9:10', '2022/12/1 9:10');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('576', 'ST_INV_OUT_TYPE', '出库单类型', '调拨出库', '1004', '4', '2022/12/1 9:11', '2022/12/1 9:11');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('577', 'print_temple', '客户对应打印模板', '甘肃海亮模板', '1', '1', '2022/12/2 20:13', '2022/12/3 10:24');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('578', 'print_temple', '客户对应打印模板', '标准模板', '2', '2', '2022/12/2 20:13', '2022/12/3 10:25');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('579', 'print_temple', '客户对应打印模板', '冬月能源模板', '3', '3', '2022/12/2 20:13', '2022/12/3 10:25');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('580', 'print_temple', '客户对应打印模板', '鑫川能源模板', '4', '4', '2022/12/2 20:13', '2022/12/3 10:25');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('581', 'print_temple', '客户对应打印模板', '正信电子模板', '5', '5', '2022/12/2 20:13', '2022/12/3 10:26');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('582', 'INANDOUT_BILL_TYPE', '出入库单据类型', '生产入库', '0001', '1', '2022/12/5 14:17', '2022/12/5 14:17');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('583', 'INANDOUT_BILL_TYPE', '出入库单据类型', '退货入库', '0002', '2', '2022/12/5 14:17', '2022/12/5 14:17');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('584', 'INANDOUT_BILL_TYPE', '出入库单据类型', '报废入库', '0003', '3', '2022/12/5 14:17', '2022/12/5 14:17');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('585', 'INANDOUT_BILL_TYPE', '出入库单据类型', '调拨入库', '0004', '4', '2022/12/5 14:17', '2022/12/5 14:17');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('586', 'INANDOUT_BILL_TYPE', '出入库单据类型', '手工入库', '0009', '5', '2022/12/5 14:18', '2022/12/5 14:18');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('587', 'INANDOUT_BILL_TYPE', '出入库单据类型', '发货出库', '1001', '6', '2022/12/5 14:18', '2022/12/5 14:18');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('588', 'INANDOUT_BILL_TYPE', '出入库单据类型', '报废出库', '1002', '7', '2022/12/5 14:19', '2022/12/5 14:19');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('589', 'INANDOUT_BILL_TYPE', '出入库单据类型', '改切出库', '1003', '8', '2022/12/5 14:19', '2022/12/5 14:19');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('590', 'INANDOUT_BILL_TYPE', '出入库单据类型', '调拨出库', '1004', '9', '2022/12/5 14:19', '2022/12/5 14:19');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('591', 'INANDOUT_BILL_TYPE', '出入库单据类型', '手工出库', '1009', '10', '2022/12/5 14:19', '2022/12/5 14:25');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('592', 'sch_cool_ivt_status', '冷却库存状态', '未检测', '03', '30', '2022/12/8 15:44', '2022/12/8 15:44');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('593', 'ST_INV_IN_TYPE', '入库单类型', '拆箱入库', '0005', '5', '2022/12/9 14:55', '2022/12/10 10:37');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('594', 'ST_INV_OUT_TYPE', '出库单类型', '拆箱出库', '1005', '5', '2022/12/9 14:55', '2022/12/10 10:37');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('595', 'INANDOUT_BILL_TYPE', '出入库单据类型', '拆箱入库', '0005', '11', '2022/12/9 14:56', '2022/12/10 10:35');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('596', 'INANDOUT_BILL_TYPE', '出入库单据类型', '拆箱出库', '1005', '12', '2022/12/9 14:56', '2022/12/10 10:35');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('600', 'INTERFACEBACK_TYPE', '接口回传类型', 'CRM', '3', '3', '2022/12/9 15:19', '2022/12/9 15:19');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('601', 'INTERFACEBACK_TYPE', '接口回传类型', 'ERP', '2', '2', '2022/12/9 15:19', '2022/12/9 15:19');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('602', 'INTERFACEBACK_TYPE', '接口回传类型', 'MES', '1', '1', '2022/12/9 15:19', '2022/12/9 15:19');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('603', 'sch_point_type', '点位类型', '入箱', '4', '4', '2022/12/12 16:01', '2022/12/12 16:01');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('604', 'sch_point_type', '点位类型', '出箱', '5', '5', '2022/12/12 16:01', '2022/12/12 16:01');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('605', 'task_priority', '任务优先级', '10101', '1', '1', '2022/12/13 14:27', '2022/12/13 14:27');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('606', 'task_priority', '任务优先级', '10102', '1', '2', '2022/12/13 14:28', '2022/12/13 14:28');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('607', 'task_priority', '任务优先级', '10103', '1', '3', '2022/12/13 14:28', '2022/12/13 14:28');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('608', 'task_priority', '任务优先级', '10201', '1', '4', '2022/12/13 14:28', '2022/12/13 14:28');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('609', 'task_priority', '任务优先级', '10202', '1', '5', '2022/12/13 14:29', '2022/12/13 14:29');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('610', 'task_priority', '任务优先级', '10203', '1', '6', '2022/12/13 14:29', '2022/12/13 14:29');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('611', 'task_priority', '任务优先级', '10204', '1', '7', '2022/12/13 14:32', '2022/12/13 14:32');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('612', 'task_priority', '任务优先级', '10301', '1', '8', '2022/12/13 14:32', '2022/12/13 14:32');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('613', 'task_priority', '任务优先级', '10302', '1', '9', '2022/12/13 14:32', '2022/12/13 14:32');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('614', 'task_priority', '任务优先级', '10303', '1', '10', '2022/12/13 14:32', '2022/12/13 14:32');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('615', 'task_priority', '任务优先级', '10401', '1', '11', '2022/12/13 14:33', '2022/12/13 14:33');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('616', 'task_priority', '任务优先级', '10402', '1', '12', '2022/12/13 14:33', '2022/12/13 14:33');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('617', 'task_priority', '任务优先级', '10403', '1', '13', '2022/12/13 14:33', '2022/12/13 14:33');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('618', 'task_priority', '任务优先级', '10404', '1', '14', '2022/12/13 14:33', '2022/12/13 14:33');
INSERT INTO `sys_dict` (`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `create_time`, `update_time`)
values ('619', 'task_priority', '任务优先级', '10405', '1', '15', '2022/12/13 14:34', '2022/12/13 14:34');
-- 插入系统数据
INSERT INTO `sys_dict`(`dict_id`, `code`, `name`, `label`, `value`, `dict_sort`, `dict_type`, `para1`, `para2`, `para3`,
                       `create_id`, `create_name`, `create_time`, `update_id`, `update_name`, `update_time`)
VALUES ('205', 'system_type', '所属系统', 'LMS系统', '1', NULL, NULL, '1324783485328', NULL, NULL, NULL, NULL, NULL,
        '1', '管理员', '2022-12-19 09:21:26');


DROP TABLE IF EXISTS `sys_role`;
CREATE TABLE `sys_role`
(
    `role_id`     char(19) CHARACTER SET utf8 COLLATE utf8_bin    NOT NULL COMMENT 'ID',
    `name`        varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '名称',
    `level`       decimal(5, 0) NULL DEFAULT NULL COMMENT '角色级别',
    `order_seq`   decimal(5, 0)                                   NOT NULL DEFAULT 1 COMMENT '排序',
    `remark`      varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注',
    `is_used`     char(1) CHARACTER SET utf8 COLLATE utf8_bin     NOT NULL DEFAULT '1' COMMENT '是否启用',
    `is_delete`   char(1) CHARACTER SET utf8 COLLATE utf8_bin     NOT NULL DEFAULT '0' COMMENT '是否删除',
    `create_id`   char(19) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建人标识',
    `create_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建人',
    `create_time` varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建时间',
    `update_id`   char(19) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改人标识',
    `update_name` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改人',
    `update_time` varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改时间',
    PRIMARY KEY (`role_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '角色表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_role
-- ----------------------------
INSERT INTO `sys_role`
VALUES ('1', '超级管理员', 1, 1, '-', '1', '0', '1', '管理员', '2022-10-11 19:52:12', '1', '管理员',
        '2022-10-11 19:52:12');
INSERT INTO `sys_role`
VALUES ('2', '普通用户', 2, 1, '-', '1', '0', '1', '管理员', '2022-10-11 19:52:12', '1', '管理员',
        '2022-10-11 19:52:12');
INSERT INTO `sys_role`
VALUES ('3', '仓库管理员', 3, 1, NULL, '1', '0', '1', '管理员', '2022-10-11 19:52:12', '1', '管理员',
        '2022-10-11 19:52:12');
INSERT INTO `sys_role`
VALUES ('4', '系统管理员', 3, 1, NULL, '1', '0', '1', '管理员', '2022-10-11 19:52:12', '1', '管理员',
        '2022-10-11 19:52:12');
INSERT INTO `sys_role`
VALUES ('5', '生产管理员', 3, 1, NULL, '1', '0', '1', '管理员', '2022-10-11 19:52:12', '1', '管理员',
        '2022-10-11 19:52:12');

DROP TABLE IF EXISTS `sys_code_rule`;
CREATE TABLE `sys_code_rule`
(
    `id`            char(32) CHARACTER SET utf8 COLLATE utf8_bin     NOT NULL COMMENT '标识',
    `code`          varchar(20) CHARACTER SET utf8 COLLATE utf8_bin  NOT NULL COMMENT '编码',
    `name`          varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '名称',
    `current_value` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '当前值',
    `remark`        varchar(1000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注',
    `is_active`     char(1) CHARACTER SET utf8 COLLATE utf8_bin      NOT NULL DEFAULT '1' COMMENT '是否启用',
    `is_delete`     char(1) CHARACTER SET utf8 COLLATE utf8_bin      NOT NULL DEFAULT '0' COMMENT '是否删除',
    `create_id`     bigint(0) NULL DEFAULT NULL COMMENT '创建id',
    `create_name`   char(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者',
    `create_time`   varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建时间',
    `update_id`     bigint(0) NULL DEFAULT NULL COMMENT '修改id',
    `update_name`   char(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者',
    `update_time`   varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改时间',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '编码规则表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_code_rule
-- ----------------------------
INSERT INTO `sys_code_rule`
VALUES ('0de65519cd504b8295d00a08768ea3b1', 'MOVE_CODE', '移库编码', NULL, NULL, '1', '0', 1, '管理员',
        '2022-11-19 16:22:48', 1, '管理员', '2022-11-19 16:22:48');
INSERT INTO `sys_code_rule`
VALUES ('67e53322e8a14b519f2ed515777368a0', 'COOLREGION_BILL_CODE', '冷却区单据编码', NULL, NULL, '1', '0', 1, '管理员',
        '2022-11-19 16:22:48', 1, '管理员', '2022-11-19 16:22:48');
INSERT INTO `sys_code_rule`
VALUES ('7e8120b829b644f586c7ba2fcf8c7629', 'IO_CODE', '出入库编码', NULL, NULL, '1', '0', 1, '管理员',
        '2022-11-19 16:22:48', 1, '管理员', '2022-11-19 16:22:48');
INSERT INTO `sys_code_rule`
VALUES ('909bc8c2afd74560809858fd2c980a60', 't', '1', NULL, NULL, '1', '0', 1, '管理员', '2022-11-19 16:22:48', 1,
        '管理员', '2022-11-19 16:22:48');
INSERT INTO `sys_code_rule`
VALUES ('96f43a631cd54069b736a9af2eff49dc', 'PD_CODE', '盘点单编码', NULL, NULL, '1', '0', 1, '管理员',
        '2022-11-19 16:22:48', 1, '管理员', '2022-11-19 16:22:48');
INSERT INTO `sys_code_rule`
VALUES ('9cdd984464e14de38fe1305f24fcebd3', 'CHANGE_CODE', '库存变更编码', NULL, NULL, '1', '0', 1, '管理员',
        '2022-11-19 16:22:48', 1, '管理员', '2022-11-19 16:22:48');
INSERT INTO `sys_code_rule`
VALUES ('dc0be256af95427bb80a36e38f3cf3f7', 'TASK_CODE', '任务编码', NULL, NULL, '1', '0', 1, '管理员',
        '2022-11-19 16:22:48', 1, '管理员', '2022-11-19 16:22:48');
INSERT INTO `sys_code_rule`
VALUES ('f177939e23594c08bc996cd05b743d23', 'HOT_BILL_CODE', '烘箱出入编码', NULL, NULL, '1', '0', 1, '管理员',
        '2022-11-19 16:22:48', 1, '管理员', '2022-11-19 16:22:48');


DROP TABLE IF EXISTS `sys_code_rule_detail`;
CREATE TABLE `sys_code_rule_detail`
(
    `id`            char(32) CHARACTER SET utf8 COLLATE utf8_bin   NOT NULL COMMENT '明细标识',
    `type`          varchar(2) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '编码规则类型',
    `init_value`    varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '初始值',
    `current_value` varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '当前值',
    `max_value`     varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '允许最大值',
    `step`          varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '步长',
    `fillchar`      varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '填充值',
    `format`        varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '格式',
    `length`        decimal(5, 0) NULL DEFAULT NULL COMMENT '长度',
    `sort_num`      decimal(5, 0)                                  NOT NULL DEFAULT 0 COMMENT '排序号',
    `remark`        varchar(1000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注',
    `code_rule_id`  char(32) CHARACTER SET utf8 COLLATE utf8_bin   NOT NULL COMMENT '编码规则标识',
    `is_active`     char(1) CHARACTER SET utf8 COLLATE utf8_bin    NOT NULL DEFAULT '1' COMMENT '是否启用',
    `is_delete`     char(1) CHARACTER SET utf8 COLLATE utf8_bin    NOT NULL DEFAULT '0' COMMENT '是否删除',
    `create_id`     bigint(0) NULL DEFAULT NULL COMMENT '创建id',
    `create_name`   char(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者',
    `create_time`   varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建时间',
    `update_id`     bigint(0) NULL DEFAULT NULL COMMENT '修改id',
    `update_name`   char(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者',
    `update_time`   varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改时间',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '编码规则明细表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_code_rule_detail
-- ----------------------------
INSERT INTO `sys_code_rule_detail`
VALUES ('0319348eaff74ea68eceedee56053d56', '01', 'YK', 'YK', '', '', '', '', NULL, 0, '',
        '0de65519cd504b8295d00a08768ea3b1', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('12720fff019b46688cb1abd04cfd0fed', '03', '0', '0', '999', '1', '0', '', 3, 3, '',
        '9cdd984464e14de38fe1305f24fcebd3', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('274b89ac44d54481bdd8db91ade6e3ca', '02', '20221117', '20221117', '', '', '', 'yyyyMMdd', NULL, 2, '',
        '96f43a631cd54069b736a9af2eff49dc', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('525f840467954f049d530a05ac31f9c0', '03', '0', '1', '999', '1', '0', '', 3, 3, '',
        '0de65519cd504b8295d00a08768ea3b1', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('5551098abc0e4b6a9e005c4121fe0f97', '03', '0', '0', '999', '1', '0', '', 3, 3, '',
        '96f43a631cd54069b736a9af2eff49dc', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('5f1acddba7d24b3c9bc9bc499ada1ac3', '03', '10001', '10179', '99999', '1', '0', '', 5, 3, '',
        'dc0be256af95427bb80a36e38f3cf3f7', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('64ee5f0c684542aea0e093dcab43d51d', '01', 's', 's', '', '', '', '', NULL, 0, '',
        '909bc8c2afd74560809858fd2c980a60', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('7b8414d9119044f59ab30ae402592bd7', '02', '20221116', '20221116', '', '', '', 'yyyyMMdd', NULL, 2, '',
        'f177939e23594c08bc996cd05b743d23', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('85629588d3ef4090813b279eff8f3a00', '01', 'LQQ', 'LQQ', '', '', '', '', NULL, 1, '',
        '67e53322e8a14b519f2ed515777368a0', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('8c870fdd9fb54a47acc4995e23cff5ff', '01', 'IO', 'IO', '', '', '', '', NULL, 0, '',
        '7e8120b829b644f586c7ba2fcf8c7629', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('92b5470d49d6426b9d126d2afc54f69c', '02', '20221229', '20221229', '', '', '', 'yyyyMMdd', NULL, 1, '',
        '9cdd984464e14de38fe1305f24fcebd3', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('9355791858104dd08fa1a9d961e7a059', '03', '0', '0', '999', '1', '0', '', 3, 3, '',
        'f177939e23594c08bc996cd05b743d23', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('9846e3b2133a4944bdfeef960d08281b', '01', 'CG', 'CG', '', '', '', '', NULL, 0, '',
        '9cdd984464e14de38fe1305f24fcebd3', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('a4029c65a5074b278d7e996ec574adbc', '03', '0', '6', '999', '1', '0', '', 3, 3, '',
        '67e53322e8a14b519f2ed515777368a0', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('ac2f89013df94e54996aa94be2603928', '03', '0', '24', '999', '1', '0', '', 3, 2, '',
        '7e8120b829b644f586c7ba2fcf8c7629', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('b28e97ec9625499a8db964cad56e76eb', '02', '20221129', '20221129', '', '', '', 'yyyyMMdd', NULL, 1, '',
        '0de65519cd504b8295d00a08768ea3b1', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('c9fdd440c7234b3baa07a204bc9a61d4', '01', 'PD', 'PD', '', '', '', '', NULL, 1, '',
        '96f43a631cd54069b736a9af2eff49dc', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('d61f54162ada49be87c8531097bf4e34', '02', '20221116', '20221116', '', '', '', 'yyyyMMdd', NULL, 2, '',
        '67e53322e8a14b519f2ed515777368a0', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('e349a74daf9648f5bf8f6d49689fc5a7', '01', 'ss', 'ss', '', '', '', '', NULL, 0, '',
        '909bc8c2afd74560809858fd2c980a60', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('ebc7677c649d43b7b3cfbd593bc1f4a9', '02', '20221229', '20221229', '', '', '', 'yyyyMMdd', NULL, 1, '',
        '7e8120b829b644f586c7ba2fcf8c7629', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');
INSERT INTO `sys_code_rule_detail`
VALUES ('fd9cacd321f84a34b7ce270b64f21567', '01', 'HOT', 'HOT', '', '', '', '', NULL, 1, '',
        'f177939e23594c08bc996cd05b743d23', '1', '0', 1, '管理员', '2022-10-25 10:12:05', 1, '管理员',
        '2022-10-25 10:12:05');


DROP TABLE IF EXISTS `sys_param`;
CREATE TABLE `sys_param`
(
    `id`          char(32) CHARACTER SET utf8 COLLATE utf8_bin     NOT NULL COMMENT '标识',
    `code`        varchar(20) CHARACTER SET utf8 COLLATE utf8_bin  NOT NULL COMMENT '编码',
    `name`        varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '名称',
    `value`       varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '值',
    `remark`      varchar(1000) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注',
    `is_active`   char(1) CHARACTER SET utf8 COLLATE utf8_bin      NOT NULL DEFAULT '1' COMMENT '是否启用',
    `is_delete`   char(1) CHARACTER SET utf8 COLLATE utf8_bin      NOT NULL DEFAULT '0' COMMENT '是否删除',
    `create_id`   char(19) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者ID',
    `create_name` char(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建者',
    `create_time` varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建时间',
    `update_id`   char(19) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者ID',
    `update_name` char(32) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改者',
    `update_time` varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改时间',
    PRIMARY KEY (`id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '系统参数表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_param
-- ----------------------------
INSERT INTO `sys_param`
VALUES ('078390dd33b846cd92a80d7befff77b3', 'platform', '系统名字', '甘肃海亮铜箔LMS系统', '', '1', '0', '1', '管理员',
        '2022-10-10 16:54:39', '1', '管理员', '2022-10-10 16:54:39');
INSERT INTO `sys_param`
VALUES ('3cfa1aabe2444efc86bae99d0aff9de0', 'SAP_TOKEN', 'TOKEN参数', '877734686FA61EDD99E9D85A96D91E14', '', '1', '0',
        '1', '管理员', '2022-10-10 16:54:39', '1', '管理员', '2022-10-10 16:54:39');
INSERT INTO `sys_param`
VALUES ('59dab529ff744cad9bc01e0fea857618', 'is_connect_acs', '是否连接ACS', '0', '0否，1是', '1', '0', '1', '管理员',
        '2022-10-10 16:54:39', '1', '管理员', '2022-10-10 16:54:39');
INSERT INTO `sys_param`
VALUES ('5e03e0124f964c23aa2f57ef9db84f2b', 'temperature_lose', '温度误差下限值', '5', NULL, '1', '0', '1', '管理员',
        '2022-10-10 16:54:39', '1', '管理员', '2022-10-10 16:54:39');
INSERT INTO `sys_param`
VALUES ('664db7cfd4944ea6b3057cacd84db261', 'SAP_CLIENT', 'SAP客户端', '800', '', '1', '0', '1', '管理员',
        '2022-10-10 16:54:39', '1', '管理员', '2022-10-10 16:54:39');
INSERT INTO `sys_param`
VALUES ('7a049fce270d4cddbdf5cf4b7d826179', 'is_upload', '是否回传', '1', '0-否；1-是', '1', '0', '1', '管理员',
        '2022-10-10 16:54:39', '1', '管理员', '2022-10-10 16:54:39');
INSERT INTO `sys_param`
VALUES ('87fc9a6b0da64dd58b9e7e8b5afe8790', 'temperature_just', '温度误差上限值', '5', NULL, '1', '0', '1', '管理员',
        '2022-10-10 16:54:39', '1', '管理员', '2022-10-10 16:54:39');
INSERT INTO `sys_param`
VALUES ('93f7c59f398f4c1d99ef22cfe75d3b27', 'SAP_URL', 'SAP接口地址', '10.156.2.4:8000', '', '1', '0', '1', '管理员',
        '2022-10-10 16:54:39', '1', '管理员', '2022-10-10 16:54:39');
INSERT INTO `sys_param`
VALUES ('9c07d247c49e4403b441ebb70a6af6e1', 'MES_PASSWORD', 'MES系统密码', 'HaiLiang123456', '', '1', '0', '1',
        '管理员', '2022-10-10 16:54:39', '1', '管理员', '2022-10-10 16:54:39');
INSERT INTO `sys_param`
VALUES ('af8d511eee2f44938145edc00b5b0fb7', 'is_connect_mes', '是否连接MES', '0', '0-否；1-是', '1', '0', '1', '管理员',
        '2022-10-10 16:54:39', '1', '管理员', '2022-10-10 16:54:39');
INSERT INTO `sys_param`
VALUES ('b3e52618097d475abf4caa1e194c71bf', 'MES_USERNAME', 'MES系统账号', 'LMSINTERFACE', '', '1', '0', '1', '管理员',
        '2022-10-10 16:54:39', '1', '管理员', '2022-10-10 16:54:39');
INSERT INTO `sys_param`
VALUES ('c003db12e86847dcafff7fa27d7214f1', 'log_day', '日志保留天数', '8', NULL, '1', '0', '1', '管理员',
        '2022-10-10 16:54:39', '1', '管理员', '2022-10-10 16:54:39');
INSERT INTO `sys_param`
VALUES ('e765d49bada347729620db80fd3a37ff', 'is_mesTolms', '是否启用mes调用lms', '0', '0-否，1-是', '1', '0', '1',
        '管理员', '2022-10-10 16:54:39', '1', '管理员', '2022-10-10 16:54:39');
INSERT INTO `sys_param`
VALUES ('f3b2f2ee46a54f37a23023ad363127c6', 'MAX_TUBE_NUM', '空管最大库存数量', '20', NULL, '1', '0', '1', '管理员',
        '2022-10-10 16:54:39', '1', '管理员', '2022-10-10 16:54:39');
INSERT INTO `sys_param`
VALUES ('f7f54cdb67694687b6f4e7aa15c0fec6', 'MES_URL', 'MES系统地址', 'http://10.1.3.36:8081/',
        'MES的测试环境是：http://10.1.3.23:8081/CamstarApi/\nMES的正式环境是：http://10.1.3.36:8081/CamstarApi/', '1',
        '0', '1', '管理员', '2022-10-10 16:54:39', '1', '管理员', '2022-10-10 16:54:39');


DROP TABLE IF EXISTS `sys_data_permission`;
CREATE TABLE `sys_data_permission`
(
    `permission_id` bigint(0) NOT NULL COMMENT 'permission_id',
    `code`          varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '编码',
    `name`          varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '名称',
    `order_sort`    decimal(5, 0) NULL DEFAULT NULL COMMENT '排序',
    `remark`        varchar(255) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注',
    `is_used`       char(1) CHARACTER SET utf8 COLLATE utf8_bin     NOT NULL DEFAULT '1' COMMENT '是否启用',
    `is_delete`     char(1) CHARACTER SET utf8 COLLATE utf8_bin     NOT NULL DEFAULT '0' COMMENT '是否删除',
    `create_id`     bigint(0) NULL DEFAULT NULL COMMENT '创建人标识',
    `create_name`   varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建人',
    `create_time`   varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建时间',
    `update_id`     bigint(0) NULL DEFAULT NULL COMMENT '修改人标识',
    `update_name`   varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改人',
    `update_time`   varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改时间',
    PRIMARY KEY (`permission_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '数据数据权限表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_data_permission
-- ----------------------------
INSERT INTO `sys_data_permission`
VALUES (1605128919449735168, 'self', '自身数据权限', 1, NULL, '1', '0', 1, '管理员', '2022-12-20 17:12:10', 1, '管理员',
        '2022-12-20 17:20:32');
INSERT INTO `sys_data_permission`
VALUES (1605129738328870912, 'user', '用户数据权限', 2, NULL, '1', '0', 1, '管理员', '2022-12-20 17:15:26', 1, '管理员',
        '2022-12-20 17:15:26');
INSERT INTO `sys_data_permission`
VALUES (1605129882164137984, 'dept', '部门数据权限', 3, NULL, '1', '0', 1, '管理员', '2022-12-20 17:16:00', 1, '管理员',
        '2022-12-20 17:20:26');

-- ----------------------------
-- Table structure for sys_data_scope
-- ----------------------------
DROP TABLE IF EXISTS `sys_data_scope`;
CREATE TABLE `sys_data_scope`
(
    `self_user_id`          char(19) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '当前用户',
    `permission_scope_type` char(1) CHARACTER SET utf8 COLLATE utf8_bin  NOT NULL COMMENT '数据权限类型',
    `dept_id`               char(19) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '部门权限列表',
    `user_id`               char(19) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '用户权限列表'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '数据权限规则表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_data_scope
-- ----------------------------

-- ----------------------------
-- Table structure for sys_user_data_permission
-- ----------------------------
DROP TABLE IF EXISTS `sys_user_data_permission`;
CREATE TABLE `sys_user_data_permission`
(
    `user_id`               char(19) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '用户标识',
    `permission_scope_type` char(1) CHARACTER SET utf8 COLLATE utf8_bin  NOT NULL COMMENT '数据权限范围',
    `permission_id`         char(19) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '权限标识'
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '用户数据权限表' ROW_FORMAT = Dynamic;

DROP TABLE IF EXISTS `sys_quartz_job`;
CREATE TABLE `sys_quartz_job`
(
    `job_id`              char(19) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL COMMENT '标识',
    `bean_name`           varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'bean名',
    `cron_expression`     varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT 'corn表达式',
    `is_pause`            bit(1) NULL DEFAULT NULL COMMENT '状态',
    `job_name`            varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '任务名称',
    `method_name`         varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '方法名称',
    `params`              varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '参数',
    `description`         varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '备注',
    `person_in_charge`    varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '负责人',
    `email`               varchar(50) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '邮箱',
    `sub_task`            varchar(100) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '子任务ID',
    `pause_after_failure` bit(1) NULL DEFAULT NULL COMMENT '失败状态',
    `create_id`           char(19) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建人标识',
    `create_name`         varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建人',
    `create_time`         varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '创建时间',
    `update_id`           char(19) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改人标识',
    `update_name`         varchar(20) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改人',
    `update_time`         varchar(25) CHARACTER SET utf8 COLLATE utf8_bin NULL DEFAULT NULL COMMENT '修改时间',
    PRIMARY KEY (`job_id`) USING BTREE
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_bin COMMENT = '定时任务表' ROW_FORMAT = Dynamic;

-- ----------------------------
-- Records of sys_quartz_job
-- ----------------------------
INSERT INTO `sys_quartz_job`
VALUES ('2', 'testTask', '0/5 * * * * ?', b'1', '测试1', 'run1', 'test', '带参测试，多参使用json', '测试', NULL, NULL,
        NULL, '1', '管理员', '2022-12-05 17:23:03', '1', '管理员', '2022-12-05 17:23:03');
INSERT INTO `sys_quartz_job`
VALUES ('3', 'testTask', '0/5 * * * * ?', b'1', '测试', 'run', '', '不带参测试', 'Zheng Jie', '', '5,6', b'1', '1',
        '管理员', '2022-12-05 17:23:03', '1', '管理员', '2022-12-05 17:23:03');
INSERT INTO `sys_quartz_job`
VALUES ('6', 'testTask', '0/5 * * * * ?', b'1', '测试3', 'run2', NULL, '测试3', 'Zheng Jie', '', NULL, b'0', '1',
        '管理员', '2022-12-05 17:23:03', '1', '管理员', '2022-12-05 17:23:03');
INSERT INTO `sys_quartz_job`
VALUES ('7', 'cleanLog', '0 0 2 * * ?', b'1', '清除日志', 'run', NULL, '操作日志和异常日志', 'admin', NULL, NULL, b'1',
        '1', '管理员', '2022-12-05 17:23:03', '1', '管理员', '2022-12-05 17:23:03');
INSERT INTO `sys_quartz_job`
VALUES ('88', 'autoCreateTask', '0/5 * * * * ?', b'1', '自动创建任务', 'run', NULL, '自动创建任务', 'ldjun', NULL, NULL,
        b'0', '1', '管理员', '2022-12-05 17:23:03', '1', '管理员', '2022-12-05 17:23:03');
INSERT INTO `sys_quartz_job`
VALUES ('89', 'autoQueryDeviceStatus', '0/5 * * * * ?', b'1', '查询设备状态', 'run', NULL, '查询设备状态', 'zhouz',
        NULL, NULL, b'0', '1', '管理员', '2022-12-05 17:23:03', '1', '管理员', '2022-12-05 17:23:03');
