diff --git a/hzims-service/safeproduct/src/main/resources/db/2.0.0.sql.1 b/hzims-service/safeproduct/src/main/resources/db/2.0.0.sql.1 index 1fa9276..778d870 100644 --- a/hzims-service/safeproduct/src/main/resources/db/2.0.0.sql.1 +++ b/hzims-service/safeproduct/src/main/resources/db/2.0.0.sql.1 @@ -1,1045 +1,1049 @@ -create table document_management +CREATE TABLE DOCUMENT_MANAGEMENT ( - id bigint primary key auto_increment, - document_name varchar(100) comment '文档名称', - document_url varchar(300) comment '文档路径', - creator_id bigint comment '创建人Id', - creator_name varchar(50) comment '创建人名称', - create_time datetime default current_timestamp comment '创建时间', - update_time datetime default current_timestamp on update current_timestamp comment '更新时间', - is_deleted tinyint default 0 comment '逻辑删除' -) comment '文档管理'; + ID BIGINT PRIMARY KEY AUTO_INCREMENT, + DOCUMENT_NAME VARCHAR(100) COMMENT '文档名称', + DOCUMENT_URL VARCHAR(300) COMMENT '文档路径', + CREATOR_ID BIGINT COMMENT '创建人ID', + CREATOR_NAME VARCHAR(50) COMMENT '创建人名称', + CREATE_TIME DATETIME DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + UPDATE_TIME DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '更新时间', + IS_DELETED TINYINT DEFAULT 0 COMMENT '逻辑删除' +) COMMENT '文档管理'; -alter table `hzims_safe_safety_tool` add column `advance_notice_days` tinyint(4) default 0 comment '安全工器具提前通知天数'; +ALTER TABLE `HZIMS_SAFE_SAFETY_TOOL` ADD COLUMN `ADVANCE_NOTICE_DAYS` TINYINT(4) DEFAULT 0 COMMENT '安全工器具提前通知天数'; -CREATE TABLE `hzims_rehearsal_plan` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `unit` varchar(50) NOT NULL COMMENT '单位', - `subject` varchar(50) NOT NULL COMMENT '演练科目', - `scheduled_start_time` date NOT NULL COMMENT '演练计划开始时间', - `scheduled_end_time` date NOT NULL COMMENT '演练计划结束时间', - `location` varchar(255) NOT NULL COMMENT '演练地点', - `commander` varchar(10) NOT NULL COMMENT '总指挥', - `rehearsal_method` varchar(20) DEFAULT '' COMMENT '演练方式', - `rehearsal_status` varchar(20) NOT NULL DEFAULT 'WAITING' COMMENT '演练状态', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='演练计划表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_REHEARSAL_PLAN` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `UNIT` VARCHAR(50) NOT NULL COMMENT '单位', + `SUBJECT` VARCHAR(50) NOT NULL COMMENT '演练科目', + `SCHEDULED_START_TIME` DATE NOT NULL COMMENT '演练计划开始时间', + `SCHEDULED_END_TIME` DATE NOT NULL COMMENT '演练计划结束时间', + `LOCATION` VARCHAR(255) NOT NULL COMMENT '演练地点', + `COMMANDER` VARCHAR(10) NOT NULL COMMENT '总指挥', + `REHEARSAL_METHOD` VARCHAR(20) DEFAULT '' COMMENT '演练方式', + `REHEARSAL_STATUS` VARCHAR(20) NOT NULL DEFAULT 'WAITING' COMMENT '演练状态', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='演练计划表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_rehearsal_record` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `rehearsal_plan_id` bigint(20) NOT NULL COMMENT '演练计划id', - `code` varchar(50) NOT NULL COMMENT '编号', - `people_num` int(10) NOT NULL DEFAULT '0' COMMENT '参演人数', - `people_name` varchar(5000) DEFAULT '' COMMENT '参演人员', - `actual_start_time` datetime NOT NULL COMMENT '演练实际开始时间', - `actual_end_time` datetime NOT NULL COMMENT '演练实际结束时间', - `record` varchar(250) NOT NULL DEFAULT '' COMMENT '演练记录', - `comment` varchar(250) NOT NULL DEFAULT '' COMMENT '演练评价', - `img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '演练图片', - `file_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '演练附件', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='演练记录表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_REHEARSAL_RECORD` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `REHEARSAL_PLAN_ID` BIGINT(20) NOT NULL COMMENT '演练计划ID', + `CODE` VARCHAR(50) NOT NULL COMMENT '编号', + `PEOPLE_NUM` INT(10) NOT NULL DEFAULT '0' COMMENT '参演人数', + `PEOPLE_NAME` VARCHAR(5000) DEFAULT '' COMMENT '参演人员', + `ACTUAL_START_TIME` DATETIME NOT NULL COMMENT '演练实际开始时间', + `ACTUAL_END_TIME` DATETIME NOT NULL COMMENT '演练实际结束时间', + `RECORD` VARCHAR(250) NOT NULL DEFAULT '' COMMENT '演练记录', + `COMMENT` VARCHAR(250) NOT NULL DEFAULT '' COMMENT '演练评价', + `IMG_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '演练图片', + `FILE_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '演练附件', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='演练记录表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_train_plan` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `unit` varchar(50) NOT NULL COMMENT '单位', - `scheduled_start_time` date NOT NULL COMMENT '计划培训开始时间', - `scheduled_end_time` date NOT NULL COMMENT '计划培训结束时间', - `lesson` varchar(255) NOT NULL COMMENT '培训课程', - `location` varchar(255) NOT NULL COMMENT '培训地点', - `train_method` varchar(20) DEFAULT '' COMMENT '培训方式', - `teacher` varchar(20) NOT NULL DEFAULT '' COMMENT '培训讲师', - `train_status` varchar(20) NOT NULL DEFAULT 'WAITING' COMMENT '培训状态', - `is_test` int(2) NOT NULL DEFAULT '0' COMMENT '关联考试:0-否,1-是', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='培训计划表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_TRAIN_PLAN` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `UNIT` VARCHAR(50) NOT NULL COMMENT '单位', + `SCHEDULED_START_TIME` DATE NOT NULL COMMENT '计划培训开始时间', + `SCHEDULED_END_TIME` DATE NOT NULL COMMENT '计划培训结束时间', + `LESSON` VARCHAR(255) NOT NULL COMMENT '培训课程', + `LOCATION` VARCHAR(255) NOT NULL COMMENT '培训地点', + `TRAIN_METHOD` VARCHAR(20) DEFAULT '' COMMENT '培训方式', + `TEACHER` VARCHAR(20) NOT NULL DEFAULT '' COMMENT '培训讲师', + `TRAIN_STATUS` VARCHAR(20) NOT NULL DEFAULT 'WAITING' COMMENT '培训状态', + `IS_TEST` INT(2) NOT NULL DEFAULT '0' COMMENT '关联考试:0-否,1-是', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='培训计划表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_train_record` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `train_plan_id` bigint(20) DEFAULT NULL COMMENT '培训计划id', - `train_record_name` varchar(50) NOT NULL DEFAULT '' COMMENT '培训记录名称', - `code` varchar(50) NOT NULL COMMENT '编号', - `people_name` varchar(5000) DEFAULT '' COMMENT '培训学员', - `content` mediumtext COMMENT '培训内容', - `actual_start_time` datetime DEFAULT NULL COMMENT '实际培训开始时间', - `actual_end_time` datetime DEFAULT NULL COMMENT '实际培训结束时间', - `command` varchar(250) DEFAULT NULL COMMENT '培训评价', - `img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '培训图片', - `file_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '培训附件', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='培训记录表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_TRAIN_RECORD` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `TRAIN_PLAN_ID` BIGINT(20) DEFAULT NULL COMMENT '培训计划ID', + `TRAIN_RECORD_NAME` VARCHAR(50) NOT NULL DEFAULT '' COMMENT '培训记录名称', + `CODE` VARCHAR(50) NOT NULL COMMENT '编号', + `PEOPLE_NAME` VARCHAR(5000) DEFAULT '' COMMENT '培训学员', + `CONTENT` MEDIUMTEXT COMMENT '培训内容', + `ACTUAL_START_TIME` DATETIME DEFAULT NULL COMMENT '实际培训开始时间', + `ACTUAL_END_TIME` DATETIME DEFAULT NULL COMMENT '实际培训结束时间', + `COMMAND` VARCHAR(250) DEFAULT NULL COMMENT '培训评价', + `IMG_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '培训图片', + `FILE_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '培训附件', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='培训记录表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_test` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `train_plan_id` bigint(20) DEFAULT NULL COMMENT '培训计划id', - `train_record_id` bigint(20) DEFAULT NULL COMMENT '培训记录id', - `test_name` varchar(50) NOT NULL DEFAULT '' COMMENT '考试记录名称', - `code` varchar(50) NOT NULL COMMENT '编号', - `unit` varchar(50) NOT NULL COMMENT '单位', - `test_start_time` datetime NOT NULL COMMENT '考试开始时间', - `test_end_time` datetime NOT NULL COMMENT '考试结束时间', - `location` varchar(255) NOT NULL COMMENT '考试地点', - `subject` varchar(50) NOT NULL COMMENT '考试科目', - `proctor` varchar(20) NOT NULL COMMENT '监考人', - `people_name` varchar(1000) DEFAULT '' COMMENT '参考人员', - `test_method` varchar(50) NOT NULL COMMENT '考试方式', - `img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '考试图片', - `file_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '考试附件', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='考试记录表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_TEST` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `TRAIN_PLAN_ID` BIGINT(20) DEFAULT NULL COMMENT '培训计划ID', + `TRAIN_RECORD_ID` BIGINT(20) DEFAULT NULL COMMENT '培训记录ID', + `TEST_NAME` VARCHAR(50) NOT NULL DEFAULT '' COMMENT '考试记录名称', + `CODE` VARCHAR(50) NOT NULL COMMENT '编号', + `UNIT` VARCHAR(50) NOT NULL COMMENT '单位', + `TEST_START_TIME` DATETIME NOT NULL COMMENT '考试开始时间', + `TEST_END_TIME` DATETIME NOT NULL COMMENT '考试结束时间', + `LOCATION` VARCHAR(255) NOT NULL COMMENT '考试地点', + `SUBJECT` VARCHAR(50) NOT NULL COMMENT '考试科目', + `PROCTOR` VARCHAR(20) NOT NULL COMMENT '监考人', + `PEOPLE_NAME` VARCHAR(1000) DEFAULT '' COMMENT '参考人员', + `TEST_METHOD` VARCHAR(50) NOT NULL COMMENT '考试方式', + `IMG_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '考试图片', + `FILE_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '考试附件', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='考试记录表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_test_score` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `test_id` bigint(20) DEFAULT NULL COMMENT '考试记录id', - `name` varchar(50) NOT NULL COMMENT '姓名', - `score` int(10) DEFAULT NULL COMMENT '成绩', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='考试成绩表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_TEST_SCORE` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `TEST_ID` BIGINT(20) DEFAULT NULL COMMENT '考试记录ID', + `NAME` VARCHAR(50) NOT NULL COMMENT '姓名', + `SCORE` INT(10) DEFAULT NULL COMMENT '成绩', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='考试成绩表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_conference_plan` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `unit` varchar(50) NOT NULL COMMENT '单位', - `theme` varchar(50) NOT NULL COMMENT '会议主题', - `scheduled_start_time` date NOT NULL COMMENT '会议计划开始时间', - `scheduled_end_time` date NOT NULL COMMENT '会议计划结束时间', - `location` varchar(255) NOT NULL COMMENT '会议地点', - `host` varchar(10) NOT NULL COMMENT '主持人', - `conference_method` varchar(20) DEFAULT '' COMMENT '会议方式', - `conference_status` varchar(20) NOT NULL DEFAULT 'WAITING' COMMENT '会议状态', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='会议计划表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_CONFERENCE_PLAN` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `UNIT` VARCHAR(50) NOT NULL COMMENT '单位', + `THEME` VARCHAR(50) NOT NULL COMMENT '会议主题', + `SCHEDULED_START_TIME` DATE NOT NULL COMMENT '会议计划开始时间', + `SCHEDULED_END_TIME` DATE NOT NULL COMMENT '会议计划结束时间', + `LOCATION` VARCHAR(255) NOT NULL COMMENT '会议地点', + `HOST` VARCHAR(10) NOT NULL COMMENT '主持人', + `CONFERENCE_METHOD` VARCHAR(20) DEFAULT '' COMMENT '会议方式', + `CONFERENCE_STATUS` VARCHAR(20) NOT NULL DEFAULT 'WAITING' COMMENT '会议状态', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='会议计划表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_conference_record` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `conference_plan_id` bigint(20) NOT NULL COMMENT '会议计划id', - `code` varchar(50) NOT NULL COMMENT '编号', - `people_name` varchar(5000) DEFAULT '' COMMENT '参会人员', - `actual_start_time` datetime DEFAULT NULL COMMENT '会议实际开始时间', - `actual_end_time` datetime DEFAULT NULL COMMENT '会议实际结束时间', - `recorder` varchar(20) DEFAULT '' COMMENT '记录人', - `content` mediumtext COMMENT '会议内容', - `img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '会议图片', - `file_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '会议附件', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='会议记录表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_CONFERENCE_RECORD` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `CONFERENCE_PLAN_ID` BIGINT(20) NOT NULL COMMENT '会议计划ID', + `CODE` VARCHAR(50) NOT NULL COMMENT '编号', + `PEOPLE_NAME` VARCHAR(5000) DEFAULT '' COMMENT '参会人员', + `ACTUAL_START_TIME` DATETIME DEFAULT NULL COMMENT '会议实际开始时间', + `ACTUAL_END_TIME` DATETIME DEFAULT NULL COMMENT '会议实际结束时间', + `RECORDER` VARCHAR(20) DEFAULT '' COMMENT '记录人', + `CONTENT` MEDIUMTEXT COMMENT '会议内容', + `IMG_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '会议图片', + `FILE_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '会议附件', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='会议记录表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_hygiene_plan` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `unit` varchar(50) NOT NULL COMMENT '单位', - `name` varchar(50) NOT NULL COMMENT '名称', - `standard_score` int(10) NOT NULL DEFAULT '100' COMMENT '标准总分值', - `scheduled_start_time` date NOT NULL COMMENT '计划开始时间', - `scheduled_end_time` date NOT NULL COMMENT '计划结束时间', - `hygiene_plan_status` varchar(50) NOT NULL DEFAULT 'WAITING' COMMENT '自查计划状态', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='卫生自查计划表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_HYGIENE_PLAN` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `UNIT` VARCHAR(50) NOT NULL COMMENT '单位', + `NAME` VARCHAR(50) NOT NULL COMMENT '名称', + `STANDARD_SCORE` INT(10) NOT NULL DEFAULT '100' COMMENT '标准总分值', + `SCHEDULED_START_TIME` DATE NOT NULL COMMENT '计划开始时间', + `SCHEDULED_END_TIME` DATE NOT NULL COMMENT '计划结束时间', + `HYGIENE_PLAN_STATUS` VARCHAR(50) NOT NULL DEFAULT 'WAITING' COMMENT '自查计划状态', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='卫生自查计划表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_hygiene_zone` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `hygiene_plan_id` bigint(20) NOT NULL COMMENT '卫生自查计划id', - `zone` varchar(50) NOT NULL COMMENT '责任区', - `principal` varchar(20) NOT NULL COMMENT '责任人', - `check_item` mediumtext NOT NULL COMMENT '检查项', - `check_item_score` varchar(255) NOT NULL COMMENT '检查项分值', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='卫生自查区域表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_HYGIENE_ZONE` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `HYGIENE_PLAN_ID` BIGINT(20) NOT NULL COMMENT '卫生自查计划ID', + `ZONE` VARCHAR(50) NOT NULL COMMENT '责任区', + `PRINCIPAL` VARCHAR(20) NOT NULL COMMENT '责任人', + `CHECK_ITEM` MEDIUMTEXT NOT NULL COMMENT '检查项', + `CHECK_ITEM_SCORE` VARCHAR(255) NOT NULL COMMENT '检查项分值', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='卫生自查区域表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_hygiene_record` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `hygiene_plan_id` bigint(20) NOT NULL COMMENT '卫生自查计划id', - `unit` varchar(50) NOT NULL COMMENT '单位', - `code` varchar(50) NOT NULL COMMENT '编号', - `actual_start_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '实际开始时间', - `actual_end_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '实际结束时间', - `check_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '检查时间', - `check_user` varchar(20) NOT NULL DEFAULT '' COMMENT '检查人', - `hygiene_zone_ids` varchar(1000) NOT NULL COMMENT '卫生自查区域id', - `check_result` mediumtext NOT NULL COMMENT '检查结果', - `comprehensive_score` varchar(500) NOT NULL COMMENT '综合评分', - `week_num` int(10) NOT NULL COMMENT '周数', - `img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '检查图片', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='卫生自查记录表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_HYGIENE_RECORD` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `HYGIENE_PLAN_ID` BIGINT(20) NOT NULL COMMENT '卫生自查计划ID', + `UNIT` VARCHAR(50) NOT NULL COMMENT '单位', + `CODE` VARCHAR(50) NOT NULL COMMENT '编号', + `ACTUAL_START_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '实际开始时间', + `ACTUAL_END_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '实际结束时间', + `CHECK_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '检查时间', + `CHECK_USER` VARCHAR(20) NOT NULL DEFAULT '' COMMENT '检查人', + `HYGIENE_ZONE_IDS` VARCHAR(1000) NOT NULL COMMENT '卫生自查区域ID', + `CHECK_RESULT` MEDIUMTEXT NOT NULL COMMENT '检查结果', + `COMPREHENSIVE_SCORE` VARCHAR(500) NOT NULL COMMENT '综合评分', + `WEEK_NUM` INT(10) NOT NULL COMMENT '周数', + `IMG_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '检查图片', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='卫生自查记录表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_car` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `unit` varchar(50) NOT NULL COMMENT '单位', - `car_brand` varchar(50) NOT NULL COMMENT '品牌', - `car_type` varchar(50) NOT NULL COMMENT '型号', - `plate_number` varchar(50) NOT NULL COMMENT '车牌号', - `registration_time` date NOT NULL COMMENT '上牌时间', - `insurance_pay_last_time` date DEFAULT NULL COMMENT '上期缴车保时间', - `insurance_pay_next_time` date DEFAULT NULL COMMENT '下期缴车保时间', - `insurance_status` varchar(50) NOT NULL DEFAULT 'UNINSURED' COMMENT '保险状态', - `last_annual_inspection_time` date DEFAULT NULL COMMENT '上期年检时间', - `next_annual_inspection_time` date DEFAULT NULL COMMENT '下期年检时间', - `annual_inspection_status` varchar(50) NOT NULL DEFAULT 'UNFINISHED' COMMENT '年检状态', - `maintenance_last_time` date DEFAULT NULL COMMENT '上期保养时间', - `maintenance_next_time` date DEFAULT NULL COMMENT '下期保养时间', - `maintenance_mileage` decimal(10, 2) DEFAULT NULL COMMENT '保养里程', - `maintenance_status` varchar(50) NOT NULL DEFAULT 'UNMAINTAINED' COMMENT '保养状态', - `manager_id` bigint(20) DEFAULT NULL COMMENT '车辆管理人id', - `manager` varchar(50) NOT NULL COMMENT '车辆管理人', - `img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '车辆图片', - `file_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '车辆附件', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='车辆台账表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_CAR` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `UNIT` VARCHAR(50) NOT NULL COMMENT '单位', + `CAR_BRAND` VARCHAR(50) NOT NULL COMMENT '品牌', + `CAR_TYPE` VARCHAR(50) NOT NULL COMMENT '型号', + `PLATE_NUMBER` VARCHAR(50) NOT NULL COMMENT '车牌号', + `REGISTRATION_TIME` DATE NOT NULL COMMENT '上牌时间', + `INSURANCE_PAY_LAST_TIME` DATE DEFAULT NULL COMMENT '上期缴车保时间', + `INSURANCE_PAY_NEXT_TIME` DATE DEFAULT NULL COMMENT '下期缴车保时间', + `INSURANCE_STATUS` VARCHAR(50) NOT NULL DEFAULT 'UNINSURED' COMMENT '保险状态', + `LAST_ANNUAL_INSPECTION_TIME` DATE DEFAULT NULL COMMENT '上期年检时间', + `NEXT_ANNUAL_INSPECTION_TIME` DATE DEFAULT NULL COMMENT '下期年检时间', + `ANNUAL_INSPECTION_STATUS` VARCHAR(50) NOT NULL DEFAULT 'UNFINISHED' COMMENT '年检状态', + `MAINTENANCE_LAST_TIME` DATE DEFAULT NULL COMMENT '上期保养时间', + `MAINTENANCE_NEXT_TIME` DATE DEFAULT NULL COMMENT '下期保养时间', + `MAINTENANCE_MILEAGE` DECIMAL(10, 2) DEFAULT NULL COMMENT '保养里程', + `MAINTENANCE_STATUS` VARCHAR(50) NOT NULL DEFAULT 'UNMAINTAINED' COMMENT '保养状态', + `MANAGER_ID` BIGINT(20) DEFAULT NULL COMMENT '车辆管理人ID', + `MANAGER` VARCHAR(50) NOT NULL COMMENT '车辆管理人', + `IMG_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '车辆图片', + `FILE_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '车辆附件', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='车辆台账表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_car_maintenance` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `car_id` bigint(20) NOT NULL COMMENT '车辆id', - `code` varchar(50) NOT NULL COMMENT '编号', - `maintenance_type` varchar(50) NOT NULL COMMENT '维保类型', - `content` mediumtext NOT NULL COMMENT '维保内容', - `start_time` date NOT NULL COMMENT '维保开始时间', - `end_time` date NOT NULL COMMENT '维保结束时间', - `location` varchar(255) NOT NULL COMMENT '维保地点', - `cost` bigint(20) NOT NULL COMMENT '维保费用', - `maintainer` varchar(20) NOT NULL COMMENT '维保人', - `manager_advice` varchar(500) DEFAULT NULL COMMENT '车辆管理人意见', - `maintenance_status` varchar(50) DEFAULT NULL COMMENT '维保状态', - `confirmation_time` datetime DEFAULT NULL COMMENT '确认时间', - `img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '维保图片', - `file_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '维保附件', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='车辆维保记录表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_CAR_MAINTENANCE` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `CAR_ID` BIGINT(20) NOT NULL COMMENT '车辆ID', + `CODE` VARCHAR(50) NOT NULL COMMENT '编号', + `MAINTENANCE_TYPE` VARCHAR(50) NOT NULL COMMENT '维保类型', + `CONTENT` MEDIUMTEXT NOT NULL COMMENT '维保内容', + `START_TIME` DATE NOT NULL COMMENT '维保开始时间', + `END_TIME` DATE NOT NULL COMMENT '维保结束时间', + `LOCATION` VARCHAR(255) NOT NULL COMMENT '维保地点', + `COST` BIGINT(20) NOT NULL COMMENT '维保费用', + `MAINTAINER` VARCHAR(20) NOT NULL COMMENT '维保人', + `MANAGER_ADVICE` VARCHAR(500) DEFAULT NULL COMMENT '车辆管理人意见', + `MAINTENANCE_STATUS` VARCHAR(50) DEFAULT NULL COMMENT '维保状态', + `CONFIRMATION_TIME` DATETIME DEFAULT NULL COMMENT '确认时间', + `IMG_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '维保图片', + `FILE_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '维保附件', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='车辆维保记录表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_car_used_record` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `car_id` bigint(20) NOT NULL COMMENT '车辆id', - `code` varchar(50) NOT NULL COMMENT '编号', - `unit` varchar(50) NOT NULL COMMENT '用车单位', - `used_location` varchar(255) NOT NULL COMMENT '使用地点', - `user` varchar(20) NOT NULL COMMENT '使用人', - `remark` mediumtext COMMENT '使用详情', - `start_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '使用时间', - `end_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '收车时间', - `start_miles` decimal(10, 2) NOT NULL COMMENT '出车公里数', - `end_miles` decimal(10, 2) NOT NULL COMMENT '收车公里数', - `miles` decimal(10, 2) NOT NULL COMMENT '行驶公里数', - `used_status` varchar(50) DEFAULT NULL COMMENT '用车状态', - `confirmation_time` datetime DEFAULT NULL COMMENT '确认时间', - `img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '里程图片', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='用车记录表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_CAR_USED_RECORD` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `CAR_ID` BIGINT(20) NOT NULL COMMENT '车辆ID', + `CODE` VARCHAR(50) NOT NULL COMMENT '编号', + `UNIT` VARCHAR(50) NOT NULL COMMENT '用车单位', + `USED_LOCATION` VARCHAR(255) NOT NULL COMMENT '使用地点', + `USER` VARCHAR(20) NOT NULL COMMENT '使用人', + `REMARK` MEDIUMTEXT COMMENT '使用详情', + `START_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '使用时间', + `END_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '收车时间', + `START_MILES` DECIMAL(10, 2) NOT NULL COMMENT '出车公里数', + `END_MILES` DECIMAL(10, 2) NOT NULL COMMENT '收车公里数', + `MILES` DECIMAL(10, 2) NOT NULL COMMENT '行驶公里数', + `USED_STATUS` VARCHAR(50) DEFAULT NULL COMMENT '用车状态', + `CONFIRMATION_TIME` DATETIME DEFAULT NULL COMMENT '确认时间', + `IMG_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '里程图片', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='用车记录表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_car_check_record` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `car_id` bigint(20) NOT NULL COMMENT '车辆id', - `code` varchar(50) NOT NULL COMMENT '编号', - `checker` varchar(50) NOT NULL COMMENT '检查人', - `check_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '检查时间', - `conclusion` mediumtext NOT NULL COMMENT '检查结论', - `remark` varchar(500) NOT NULL DEFAULT '' COMMENT '填报备注', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='车检记录表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_CAR_CHECK_RECORD` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `CAR_ID` BIGINT(20) NOT NULL COMMENT '车辆ID', + `CODE` VARCHAR(50) NOT NULL COMMENT '编号', + `CHECKER` VARCHAR(50) NOT NULL COMMENT '检查人', + `CHECK_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '检查时间', + `CONCLUSION` MEDIUMTEXT NOT NULL COMMENT '检查结论', + `REMARK` VARCHAR(500) NOT NULL DEFAULT '' COMMENT '填报备注', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='车检记录表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_car_check_item` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `car_check_record_id` bigint(20) NOT NULL COMMENT '车检记录id', - `check_item` varchar(500) NOT NULL COMMENT '检查项目', - `check_content` mediumtext NOT NULL COMMENT '检查内容', - `check_result` mediumtext NOT NULL COMMENT '检查结果', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='车检项表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_CAR_CHECK_ITEM` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `CAR_CHECK_RECORD_ID` BIGINT(20) NOT NULL COMMENT '车检记录ID', + `CHECK_ITEM` VARCHAR(500) NOT NULL COMMENT '检查项目', + `CHECK_CONTENT` MEDIUMTEXT NOT NULL COMMENT '检查内容', + `CHECK_RESULT` MEDIUMTEXT NOT NULL COMMENT '检查结果', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='车检项表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_car_annual_inspection` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `car_id` bigint(20) NOT NULL COMMENT '车辆id', - `code` varchar(50) NOT NULL COMMENT '编号', - `annual_inspection_time` date NOT NULL COMMENT '年检时间', - `next_annual_inspection_time` date NOT NULL COMMENT '下次年检时间', - `location` varchar(255) NOT NULL DEFAULT '' COMMENT '年检地点', - `img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '年检图片', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='车辆年检记录表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_CAR_ANNUAL_INSPECTION` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `CAR_ID` BIGINT(20) NOT NULL COMMENT '车辆ID', + `CODE` VARCHAR(50) NOT NULL COMMENT '编号', + `ANNUAL_INSPECTION_TIME` DATE NOT NULL COMMENT '年检时间', + `NEXT_ANNUAL_INSPECTION_TIME` DATE NOT NULL COMMENT '下次年检时间', + `LOCATION` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '年检地点', + `IMG_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '年检图片', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='车辆年检记录表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_car_insurance` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `car_id` bigint(20) NOT NULL COMMENT '车辆id', - `code` varchar(50) NOT NULL COMMENT '编号', - `insurance_time` date NOT NULL COMMENT '车保时间', - `next_insurance_time` date NOT NULL COMMENT '下次车保时间', - `location` varchar(255) NOT NULL DEFAULT '' COMMENT '车保地点', - `img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '车保图片', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='车保记录表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_CAR_INSURANCE` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `CAR_ID` BIGINT(20) NOT NULL COMMENT '车辆ID', + `CODE` VARCHAR(50) NOT NULL COMMENT '编号', + `INSURANCE_TIME` DATE NOT NULL COMMENT '车保时间', + `NEXT_INSURANCE_TIME` DATE NOT NULL COMMENT '下次车保时间', + `LOCATION` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '车保地点', + `IMG_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '车保图片', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='车保记录表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_device` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `name` varchar(50) NOT NULL COMMENT '设备名称', - `type` varchar(50) NOT NULL DEFAULT '' COMMENT '规格型号', - `code` varchar(50) NOT NULL COMMENT '编码', - `quality_certificate_no` varchar(255) NOT NULL DEFAULT '' COMMENT '产品合格证号', - `production_time` date DEFAULT NULL COMMENT '生产日期', - `used_time` date DEFAULT NULL COMMENT '使用日期', - `used_location` varchar(255) NOT NULL DEFAULT '' COMMENT '使用地点', - `inspection_period` int(10) DEFAULT NULL COMMENT '检验周期', - `inspection_current_time` date DEFAULT NULL COMMENT '本次检验日期', - `inspection_next_time` date DEFAULT NULL COMMENT '下次检验日期', - `inspection_last_time` date DEFAULT NULL COMMENT '上次检验日期', - `manager_id` bigint(20) DEFAULT NULL COMMENT '设备管理人id', - `manager` varchar(50) NOT NULL DEFAULT '' COMMENT '设备管理人', - `device_status` varchar(20) NOT NULL DEFAULT 'EXPIRED' COMMENT '设备状态', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='特种设备表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_DEVICE` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `NAME` VARCHAR(50) NOT NULL COMMENT '设备名称', + `TYPE` VARCHAR(50) NOT NULL DEFAULT '' COMMENT '规格型号', + `CODE` VARCHAR(50) NOT NULL COMMENT '编码', + `QUALITY_CERTIFICATE_NO` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '产品合格证号', + `PRODUCTION_TIME` DATE DEFAULT NULL COMMENT '生产日期', + `USED_TIME` DATE DEFAULT NULL COMMENT '使用日期', + `USED_LOCATION` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '使用地点', + `INSPECTION_PERIOD` INT(10) DEFAULT NULL COMMENT '检验周期', + `INSPECTION_CURRENT_TIME` DATE DEFAULT NULL COMMENT '本次检验日期', + `INSPECTION_NEXT_TIME` DATE DEFAULT NULL COMMENT '下次检验日期', + `INSPECTION_LAST_TIME` DATE DEFAULT NULL COMMENT '上次检验日期', + `MANAGER_ID` BIGINT(20) DEFAULT NULL COMMENT '设备管理人ID', + `MANAGER` VARCHAR(50) NOT NULL DEFAULT '' COMMENT '设备管理人', + `DEVICE_STATUS` VARCHAR(20) NOT NULL DEFAULT 'EXPIRED' COMMENT '设备状态', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='特种设备表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_device_inspection` ( - `id` bigint(20) NOT NULL COMMENT '主键id', - `device_id` bigint(20) NOT NULL COMMENT '设备id', - `inspection_time` date NOT NULL COMMENT '设备检验时间', - `last_inspection_time` date NOT NULL COMMENT '上次检验时间', - `next_inspection_time` date NOT NULL COMMENT '下次检验时间', - `location` varchar(255) NOT NULL DEFAULT '' COMMENT '设备检验地点', - `img_path` varchar(1000) NOT NULL DEFAULT '' COMMENT '设备检验图片', - `create_user` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建人', - `create_dept` bigint(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', - `create_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', - `update_user` bigint(20) DEFAULT '-1' COMMENT '更新人', - `update_time` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', - `status` int(2) NOT NULL DEFAULT '1' COMMENT '状态', - `is_deleted` int(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=INNODB CHARACTER SET=utf8mb4 COLLATE=utf8mb4_general_ci COMMENT='特种设备表' ROW_FORMAT=Dynamic; +CREATE TABLE `HZIMS_DEVICE_INSPECTION` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `DEVICE_ID` BIGINT(20) NOT NULL COMMENT '设备ID', + `INSPECTION_TIME` DATE NOT NULL COMMENT '设备检验时间', + `LAST_INSPECTION_TIME` DATE NOT NULL COMMENT '上次检验时间', + `NEXT_INSPECTION_TIME` DATE NOT NULL COMMENT '下次检验时间', + `LOCATION` VARCHAR(255) NOT NULL DEFAULT '' COMMENT '设备检验地点', + `IMG_PATH` VARCHAR(1000) NOT NULL DEFAULT '' COMMENT '设备检验图片', + `CREATE_USER` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建人', + `CREATE_DEPT` BIGINT(20) NOT NULL DEFAULT '-1' COMMENT '创建部门', + `CREATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT '-1' COMMENT '更新人', + `UPDATE_TIME` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '最后更新时间', + `STATUS` INT(2) NOT NULL DEFAULT '1' COMMENT '状态', + `IS_DELETED` INT(2) NOT NULL DEFAULT '0' COMMENT '逻辑删除状态:0-未删除,1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB CHARACTER SET=UTF8MB4 COLLATE=UTF8MB4_GENERAL_CI COMMENT='特种设备表' ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_hazard_library` ( - `ID` bigint(20) NOT NULL, +CREATE TABLE `HZIMS_HAZARD_LIBRARY` ( + `ID` BIGINT(20) NOT NULL, `STATION_TYPE` TINYINT(4) NOT NULL COMMENT '站点类型', - `STATION_TYPE_NAME` varchar(25) NOT NULL COMMENT '站点类型名称', - `NAME` varchar(255) NOT NULL COMMENT '危险源名称', - `POSITION` varchar(255) COMMENT '所在部位', - `DANGER_ELE` varchar(255) NOT NULL COMMENT '危险因素', - `CAUSE` text NOT NULL COMMENT '可能导致的事故', - `MEASURES` text COMMENT '措施', - `LEVEL` tinyint(4) NOT NULL COMMENT '风险等级', - `TYPE` tinyint(4) NOT NULL COMMENT '危险源类型', - `STATUS` tinyint(4) DEFAULT NULL COMMENT '业务状态', - `TENANT_ID` varchar(12) NOT NULL COMMENT '租户ID', - `CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建单位', - `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', - `CREATE_TIME` datetime NOT NULL COMMENT '创建时间', - `UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', - `UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', - `IS_DELETED` tinyint(4) NOT NULL DEFAULT '0', + `STATION_TYPE_NAME` VARCHAR(25) NOT NULL COMMENT '站点类型名称', + `NAME` VARCHAR(255) NOT NULL COMMENT '危险源名称', + `POSITION` VARCHAR(255) COMMENT '所在部位', + `DANGER_ELE` VARCHAR(255) NOT NULL COMMENT '危险因素', + `CAUSE` TEXT NOT NULL COMMENT '可能导致的事故', + `MEASURES` TEXT COMMENT '措施', + `LEVEL` TINYINT(4) NOT NULL COMMENT '风险等级', + `TYPE` TINYINT(4) NOT NULL COMMENT '危险源类型', + `STATUS` TINYINT(4) DEFAULT NULL COMMENT '业务状态', + `TENANT_ID` VARCHAR(12) NOT NULL COMMENT '租户ID', + `CREATE_DEPT` BIGINT(20) DEFAULT NULL COMMENT '创建单位', + `CREATE_USER` BIGINT(20) NOT NULL COMMENT '创建人', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT NULL COMMENT '修改人', + `UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '修改时间', + `IS_DELETED` TINYINT(4) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='危险源库'; +) ENGINE=INNODB DEFAULT CHARSET=UTF8 COMMENT='危险源库'; -alter table `hzims_safe_danger_source` add column `ref_dept` bigint(20) NOT NULL comment '所属机构'; -alter table `hzims_safe_danger_source` add column `ref_dept_name` varchar(100) comment '所属机构名称'; -alter table `hzims_safe_danger_source` add column `library_id` bigint(20) comment '危险源库ID'; -alter table `hzims_safe_danger_source` add column `em_code` varchar(50) comment '设备编号'; -alter table `hzims_safe_danger_source` add column `em_name` varchar(100) comment '设备名称'; +ALTER TABLE `HZIMS_SAFE_DANGER_SOURCE` ADD COLUMN `REF_DEPT` BIGINT(20) NOT NULL COMMENT '所属机构'; +ALTER TABLE `HZIMS_SAFE_DANGER_SOURCE` ADD COLUMN `REF_DEPT_NAME` VARCHAR(100) COMMENT '所属机构名称'; +ALTER TABLE `HZIMS_SAFE_DANGER_SOURCE` ADD COLUMN `LIBRARY_ID` BIGINT(20) COMMENT '危险源库ID'; +ALTER TABLE `HZIMS_SAFE_DANGER_SOURCE` ADD COLUMN `EM_CODE` VARCHAR(50) COMMENT '设备编号'; +ALTER TABLE `HZIMS_SAFE_DANGER_SOURCE` ADD COLUMN `EM_NAME` VARCHAR(100) COMMENT '设备名称'; -- 风险隐患排查字典 -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1528555588564525057, 0, 'reviewStandard', '-1', '评审标准', 6, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1528555683292880897, 1528555588564525057, 'reviewStandard', '1', '目标职责', 1, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1528555739014209537, 1528555588564525057, 'reviewStandard', '2', '制度化管理', 2, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1528555790390239233, 1528555588564525057, 'reviewStandard', '3', '教育培训', 3, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1528555914126401538, 1528555588564525057, 'reviewStandard', '4', '现场管理', 4, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1528555992996093953, 1528555588564525057, 'reviewStandard', '5', '安全风险管控及隐患排查治理', 5, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1528556127964602370, 1528555588564525057, 'reviewStandard', '6', '应急管理', 6, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1528556183560101890, 1528555588564525057, 'reviewStandard', '7', '事故管理', 7, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1528556264795381761, 1528555588564525057, 'reviewStandard', '8', '持续改进', 8, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1531454728936071170, 0, 'standardStatus', '-1', '电站安全标准状态', 7, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1531454996817879042, 1531454728936071170, 'standardStatus', '0', '草稿', 1, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1531455057266188290, 1531454728936071170, 'standardStatus', '1', '已提交', 2, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1531455122147876865, 1531454728936071170, 'standardStatus', '2', '已评审', 3, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1531455234970460161, 1531454728936071170, 'standardStatus', '3', '不通过', 4, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1531958665853087745, 0, 'accidentType', '-1', '事故类型', 20, '事故管理-事故类型', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1531958809264730113, 1531958665853087745, 'accidentType', '1', '一般质量事故', 1, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1531958998432034818, 1531958665853087745, 'accidentType', '2', '较大质量事故', 2, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1531959051192184833, 1531958665853087745, 'accidentType', '3', '重大质量事故', 3, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1531959109291683842, 1531958665853087745, 'accidentType', '4', '特大质量事故', 4, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1704015701951483906, 0, 'hd_check_type', '-1', '隐患排查类型', 13, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1704016050250682369, 1704015701951483906, 'hd_check_type', '1', '专项隐患排查', 1, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1704016775433261057, 0, 'hd_check_cycle', '-1', '隐患排查周期', 14, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1704016894522134529, 1704016775433261057, 'hd_check_cycle', '1', '每天一次', 1, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1704016959059890177, 1704016775433261057, 'hd_check_cycle', '2', '每周一次', 2, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1704017012960890882, 1704016775433261057, 'hd_check_cycle', '3', '每月一次', 3, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1704017591875506177, 0, 'hd_plan_type', '-1', '隐患计划类型', 15, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1704017674230665217, 1704017591875506177, 'hd_plan_type', '1', '定时计划', 1, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1704017745496084482, 1704017591875506177, 'hd_plan_type', '2', '临时计划', 2, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1711657244147339266, 1704016775433261057, 'hd_check_cycle', '4', '每季度一次', 4, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1711657301072433154, 1704016775433261057, 'hd_check_cycle', '5', '每年一次', 5, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1810401848933404697, 0, 'inner_danger_level', '-1', '隐患等级', 4, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1810401848933404895, 0, 'rectifier_type', '-1', '整改类型', 4, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767366, 1810401848933404895, 'rectifier_type', '3', '限期整改', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767733, 1810401848933404895, 'rectifier_type', '2', '停产停业整改', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767756, 1810401848933404895, 'rectifier_type', '1', '立即整改', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767760, 1810401848933404697, 'inner_danger_level', '3', '较大风险', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767777, 1810401848933404697, 'inner_danger_level', '4', '重大风险', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767798, 1810401848933404697, 'inner_danger_level', '1', '低风险', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767799, 1810401848933404697, 'inner_danger_level', '2', '一般风险', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1468129281301524482, 0, 'riskLevel', '-1', '风险等级', 2, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1468129396317728770, 1468129281301524482, 'riskLevel', '10', '稍有危险', 1, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1468129468874993665, 1468129281301524482, 'riskLevel', '20', '一般危险', 2, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1468129620985622530, 1468129281301524482, 'riskLevel', '30', '显著危险', 3, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1468129679554883585, 1468129281301524482, 'riskLevel', '40', '高度危险', 4, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1630129576354127811, 0, 'evaluate_method', '-1', '评价方法', 3, NULL, 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1630129576354127822, 1630129576354127811, 'evaluate_method', '1', 'LS', 2, NULL, 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1630129576354127823, 1630129576354127811, 'evaluate_method', '2', 'LEC', 4, NULL, 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701401848933404697, 0, 'hazard_level', '-1', '风险等级', 1, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414151353540610, 0, 'hidden_danger_projects_type', '-1', '风险隐患项目类别', 0, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414510251745282, 1701414151353540610, 'hidden_danger_projects_type', '01', '构(建)筑物类', 1, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414641034338305, 1701414151353540610, 'hidden_danger_projects_type', '02', '金属结构类', 2, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414730322681858, 1701414151353540610, 'hidden_danger_projects_type', '03', '设备设施类', 3, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414848933404673, 1701414151353540610, 'hidden_danger_projects_type', '04', '作业活动类', 4, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414913311776770, 1701414151353540610, 'hidden_danger_projects_type', '05', '管理类', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414974804467714, 1701414151353540610, 'hidden_danger_projects_type', '06', '环境类', 6, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1702421133117767760, 1701401848933404697, 'hazard_level', '1', '低风险', 2, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1703421133117767777, 1701401848933404697, 'hazard_level', '2', '一般风险', 3, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1704421133117767798, 1701401848933404697, 'hazard_level', '3', '较大风险', 4, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1705421133117767799, 1701401848933404697, 'hazard_level', '4', '重大风险', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1810401848933404671, 0, 'hazard_type', '-1', '项目类别', 0, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1810414848933404673, 0, 'hazard_station_type', '-1', '站点分类', 0, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767702, 1810401848933404671, 'hazard_type', '1', '构筑物类', 1, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812297148044677143, 1810401848933404671, 'hazard_type', '2', '金属结构类', 2, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812297688044677144, 1810401848933404671, 'hazard_type', '3', '设备设施类', 3, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812297688044677145, 1810401848933404671, 'hazard_type', '4', '作业活动类', 4, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812297688044677146, 1810401848933404671, 'hazard_type', '5', '管理类', 5, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812297688044677147, 1810401848933404671, 'hazard_type', '6', '环境类', 6, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812414874722367716, 1810414848933404673, 'hazard_station_type', '3', '水电站', 3, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812414974824267715, 1810414848933404673, 'hazard_station_type', '2', '闸门', 1, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812414974824467714, 1810414848933404673, 'hazard_station_type', '1', '水库', 2, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1468129281301524482, 0, 'riskLevel', '-1', '风险等级', 2, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1468129396317728770, 1468129281301524482, 'riskLevel', '10', '稍有危险', 1, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1468129468874993665, 1468129281301524482, 'riskLevel', '20', '一般危险', 2, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1468129620985622530, 1468129281301524482, 'riskLevel', '30', '显著危险', 3, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1468129679554883585, 1468129281301524482, 'riskLevel', '40', '高度危险', 4, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1630129576354127811, 0, 'evaluate_method', '-1', '评价方法', 3, NULL, 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1630129576354127822, 1630129576354127811, 'evaluate_method', '1', 'LS', 2, NULL, 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1630129576354127823, 1630129576354127811, 'evaluate_method', '2', 'LEC', 4, NULL, 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701401848933404697, 0, 'hazard_level', '-1', '风险等级', 1, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414151353540610, 0, 'hidden_danger_projects_type', '-1', '风险隐患项目类别', 0, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414510251745282, 1701414151353540610, 'hidden_danger_projects_type', '01', '构(建)筑物类', 1, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414641034338305, 1701414151353540610, 'hidden_danger_projects_type', '02', '金属结构类', 2, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414730322681858, 1701414151353540610, 'hidden_danger_projects_type', '03', '设备设施类', 3, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414848933404673, 1701414151353540610, 'hidden_danger_projects_type', '04', '作业活动类', 4, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414913311776770, 1701414151353540610, 'hidden_danger_projects_type', '05', '管理类', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414974804467714, 1701414151353540610, 'hidden_danger_projects_type', '06', '环境类', 6, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1702421133117767760, 1701401848933404697, 'hazard_level', '1', '低风险', 2, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1703421133117767777, 1701401848933404697, 'hazard_level', '2', '一般风险', 3, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1704421133117767798, 1701401848933404697, 'hazard_level', '3', '较大风险', 4, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1705421133117767799, 1701401848933404697, 'hazard_level', '4', '重大风险', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1810401848933404671, 0, 'hazard_type', '-1', '项目类别', 0, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1810414848933404673, 0, 'hazard_station_type', '-1', '站点分类', 0, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767702, 1810401848933404671, 'hazard_type', '1', '构筑物类', 1, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812297148044677143, 1810401848933404671, 'hazard_type', '2', '金属结构类', 2, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812297688044677144, 1810401848933404671, 'hazard_type', '3', '设备设施类', 3, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812297688044677145, 1810401848933404671, 'hazard_type', '4', '作业活动类', 4, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812297688044677146, 1810401848933404671, 'hazard_type', '5', '管理类', 5, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812297688044677147, 1810401848933404671, 'hazard_type', '6', '环境类', 6, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812414874722367716, 1810414848933404673, 'hazard_station_type', '3', '水电站', 3, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812414974824267715, 1810414848933404673, 'hazard_station_type', '2', '闸门', 1, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812414974824467714, 1810414848933404673, 'hazard_station_type', '1', '水库', 2, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1468129281301524482, 0, 'riskLevel', '-1', '风险等级', 2, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1468129396317728770, 1468129281301524482, 'riskLevel', '10', '稍有危险', 1, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1468129468874993665, 1468129281301524482, 'riskLevel', '20', '一般危险', 2, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1468129620985622530, 1468129281301524482, 'riskLevel', '30', '显著危险', 3, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1468129679554883585, 1468129281301524482, 'riskLevel', '40', '高度危险', 4, '', 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1630129576354127811, 0, 'evaluate_method', '-1', '评价方法', 3, NULL, 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1630129576354127822, 1630129576354127811, 'evaluate_method', '1', 'LS', 2, NULL, 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1630129576354127823, 1630129576354127811, 'evaluate_method', '2', 'LEC', 4, NULL, 0, 0, 0, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701401848933404697, 0, 'hazard_level', '-1', '风险等级', 1, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414151353540610, 0, 'hidden_danger_projects_type', '-1', '风险隐患项目类别', 0, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414510251745282, 1701414151353540610, 'hidden_danger_projects_type', '01', '构(建)筑物类', 1, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414641034338305, 1701414151353540610, 'hidden_danger_projects_type', '02', '金属结构类', 2, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414730322681858, 1701414151353540610, 'hidden_danger_projects_type', '03', '设备设施类', 3, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414848933404673, 1701414151353540610, 'hidden_danger_projects_type', '04', '作业活动类', 4, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414913311776770, 1701414151353540610, 'hidden_danger_projects_type', '05', '管理类', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1701414974804467714, 1701414151353540610, 'hidden_danger_projects_type', '06', '环境类', 6, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1702421133117767760, 1701401848933404697, 'hazard_level', '1', '低风险', 2, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1703421133117767777, 1701401848933404697, 'hazard_level', '2', '一般风险', 3, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1704421133117767798, 1701401848933404697, 'hazard_level', '3', '较大风险', 4, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1705421133117767799, 1701401848933404697, 'hazard_level', '4', '重大风险', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1810401848933404671, 0, 'hazard_type', '-1', '项目类别', 0, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1810414848933404673, 0, 'hazard_station_type', '-1', '站点分类', 0, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767702, 1810401848933404671, 'hazard_type', '1', '构筑物类', 1, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812297148044677143, 1810401848933404671, 'hazard_type', '2', '金属结构类', 2, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812297688044677144, 1810401848933404671, 'hazard_type', '3', '设备设施类', 3, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812297688044677145, 1810401848933404671, 'hazard_type', '4', '作业活动类', 4, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812297688044677146, 1810401848933404671, 'hazard_type', '5', '管理类', 5, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812297688044677147, 1810401848933404671, 'hazard_type', '6', '环境类', 6, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812414874722367716, 1810414848933404673, 'hazard_station_type', '3', '水电站', 3, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812414974824267715, 1810414848933404673, 'hazard_station_type', '2', '闸门', 1, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1812414974824467714, 1810414848933404673, 'hazard_station_type', '1', '水库', 2, NULL, 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1810401848933404699, 0, 'inner_danger_type', '-1', '隐患类别', 4, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767766, 1810401848933404699, 'inner_danger_type', '1', '人的不安全行为', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767767, 1810401848933404699, 'inner_danger_type', '2', '环境的不安全行为', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767768, 1810401848933404699, 'inner_danger_type', '3', '物的不安全行为', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767769, 1810401848933404699, 'inner_danger_type', '4', '管理因素', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1811421133117767770, 1810401848933404699, 'inner_danger_type', '5', '其他', 5, '', 0, 0, 1, -1, 'hzims_safeproduct'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1528555588564525057, 0, 'REVIEWSTANDARD', '-1', '评审标准', 6, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1528555683292880897, 1528555588564525057, 'REVIEWSTANDARD', '1', '目标职责', 1, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1528555739014209537, 1528555588564525057, 'REVIEWSTANDARD', '2', '制度化管理', 2, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1528555790390239233, 1528555588564525057, 'REVIEWSTANDARD', '3', '教育培训', 3, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1528555914126401538, 1528555588564525057, 'REVIEWSTANDARD', '4', '现场管理', 4, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1528555992996093953, 1528555588564525057, 'REVIEWSTANDARD', '5', '安全风险管控及隐患排查治理', 5, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1528556127964602370, 1528555588564525057, 'REVIEWSTANDARD', '6', '应急管理', 6, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1528556183560101890, 1528555588564525057, 'REVIEWSTANDARD', '7', '事故管理', 7, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1528556264795381761, 1528555588564525057, 'REVIEWSTANDARD', '8', '持续改进', 8, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1531454728936071170, 0, 'STANDARDSTATUS', '-1', '电站安全标准状态', 7, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1531454996817879042, 1531454728936071170, 'STANDARDSTATUS', '0', '草稿', 1, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1531455057266188290, 1531454728936071170, 'STANDARDSTATUS', '1', '已提交', 2, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1531455122147876865, 1531454728936071170, 'STANDARDSTATUS', '2', '已评审', 3, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1531455234970460161, 1531454728936071170, 'STANDARDSTATUS', '3', '不通过', 4, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1531958665853087745, 0, 'ACCIDENTTYPE', '-1', '事故类型', 20, '事故管理-事故类型', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1531958809264730113, 1531958665853087745, 'ACCIDENTTYPE', '1', '一般质量事故', 1, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1531958998432034818, 1531958665853087745, 'ACCIDENTTYPE', '2', '较大质量事故', 2, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1531959051192184833, 1531958665853087745, 'ACCIDENTTYPE', '3', '重大质量事故', 3, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1531959109291683842, 1531958665853087745, 'ACCIDENTTYPE', '4', '特大质量事故', 4, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1704015701951483906, 0, 'HD_CHECK_TYPE', '-1', '隐患排查类型', 13, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1704016050250682369, 1704015701951483906, 'HD_CHECK_TYPE', '1', '专项隐患排查', 1, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1704016775433261057, 0, 'HD_CHECK_CYCLE', '-1', '隐患排查周期', 14, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1704016894522134529, 1704016775433261057, 'HD_CHECK_CYCLE', '1', '每天一次', 1, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1704016959059890177, 1704016775433261057, 'HD_CHECK_CYCLE', '2', '每周一次', 2, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1704017012960890882, 1704016775433261057, 'HD_CHECK_CYCLE', '3', '每月一次', 3, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1704017591875506177, 0, 'HD_PLAN_TYPE', '-1', '隐患计划类型', 15, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1704017674230665217, 1704017591875506177, 'HD_PLAN_TYPE', '1', '定时计划', 1, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1704017745496084482, 1704017591875506177, 'HD_PLAN_TYPE', '2', '临时计划', 2, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1711657244147339266, 1704016775433261057, 'HD_CHECK_CYCLE', '4', '每季度一次', 4, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1711657301072433154, 1704016775433261057, 'HD_CHECK_CYCLE', '5', '每年一次', 5, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1810401848933404697, 0, 'INNER_DANGER_LEVEL', '-1', '隐患等级', 4, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1810401848933404895, 0, 'RECTIFIER_TYPE', '-1', '整改类型', 4, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1811421133117767366, 1810401848933404895, 'RECTIFIER_TYPE', '3', '限期整改', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1811421133117767733, 1810401848933404895, 'RECTIFIER_TYPE', '2', '停产停业整改', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1811421133117767756, 1810401848933404895, 'RECTIFIER_TYPE', '1', '立即整改', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1811421133117767760, 1810401848933404697, 'INNER_DANGER_LEVEL', '3', '较大风险', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1811421133117767777, 1810401848933404697, 'INNER_DANGER_LEVEL', '4', '重大风险', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1811421133117767798, 1810401848933404697, 'INNER_DANGER_LEVEL', '1', '低风险', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1811421133117767799, 1810401848933404697, 'INNER_DANGER_LEVEL', '2', '一般风险', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1468129281301524482, 0, 'RISKLEVEL', '-1', '风险等级', 2, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1468129396317728770, 1468129281301524482, 'RISKLEVEL', '10', '稍有危险', 1, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1468129468874993665, 1468129281301524482, 'RISKLEVEL', '20', '一般危险', 2, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1468129620985622530, 1468129281301524482, 'RISKLEVEL', '30', '显著危险', 3, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1468129679554883585, 1468129281301524482, 'RISKLEVEL', '40', '高度危险', 4, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1630129576354127811, 0, 'EVALUATE_METHOD', '-1', '评价方法', 3, NULL, 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1630129576354127822, 1630129576354127811, 'EVALUATE_METHOD', '1', 'LS', 2, NULL, 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1630129576354127823, 1630129576354127811, 'EVALUATE_METHOD', '2', 'LEC', 4, NULL, 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701401848933404697, 0, 'HAZARD_LEVEL', '-1', '风险等级', 1, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414151353540610, 0, 'HIDDEN_DANGER_PROJECTS_TYPE', '-1', '风险隐患项目类别', 0, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414510251745282, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '01', '构(建)筑物类', 1, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414641034338305, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '02', '金属结构类', 2, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414730322681858, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '03', '设备设施类', 3, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414848933404673, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '04', '作业活动类', 4, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414913311776770, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '05', '管理类', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414974804467714, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '06', '环境类', 6, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1702421133117767760, 1701401848933404697, 'HAZARD_LEVEL', '1', '低风险', 2, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1703421133117767777, 1701401848933404697, 'HAZARD_LEVEL', '2', '一般风险', 3, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1704421133117767798, 1701401848933404697, 'HAZARD_LEVEL', '3', '较大风险', 4, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1705421133117767799, 1701401848933404697, 'HAZARD_LEVEL', '4', '重大风险', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1810401848933404671, 0, 'HAZARD_TYPE', '-1', '项目类别', 0, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1810414848933404673, 0, 'HAZARD_STATION_TYPE', '-1', '站点分类', 0, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1811421133117767702, 1810401848933404671, 'HAZARD_TYPE', '1', '构筑物类', 1, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812297148044677143, 1810401848933404671, 'HAZARD_TYPE', '2', '金属结构类', 2, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812297688044677144, 1810401848933404671, 'HAZARD_TYPE', '3', '设备设施类', 3, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812297688044677145, 1810401848933404671, 'HAZARD_TYPE', '4', '作业活动类', 4, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812297688044677146, 1810401848933404671, 'HAZARD_TYPE', '5', '管理类', 5, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812297688044677147, 1810401848933404671, 'HAZARD_TYPE', '6', '环境类', 6, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812414874722367716, 1810414848933404673, 'HAZARD_STATION_TYPE', '3', '水电站', 3, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812414974824267715, 1810414848933404673, 'HAZARD_STATION_TYPE', '2', '闸门', 1, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812414974824467714, 1810414848933404673, 'HAZARD_STATION_TYPE', '1', '水库', 2, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1468129281301524482, 0, 'RISKLEVEL', '-1', '风险等级', 2, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1468129396317728770, 1468129281301524482, 'RISKLEVEL', '10', '稍有危险', 1, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1468129468874993665, 1468129281301524482, 'RISKLEVEL', '20', '一般危险', 2, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1468129620985622530, 1468129281301524482, 'RISKLEVEL', '30', '显著危险', 3, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1468129679554883585, 1468129281301524482, 'RISKLEVEL', '40', '高度危险', 4, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1630129576354127811, 0, 'EVALUATE_METHOD', '-1', '评价方法', 3, NULL, 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1630129576354127822, 1630129576354127811, 'EVALUATE_METHOD', '1', 'LS', 2, NULL, 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1630129576354127823, 1630129576354127811, 'EVALUATE_METHOD', '2', 'LEC', 4, NULL, 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701401848933404697, 0, 'HAZARD_LEVEL', '-1', '风险等级', 1, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414151353540610, 0, 'HIDDEN_DANGER_PROJECTS_TYPE', '-1', '风险隐患项目类别', 0, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414510251745282, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '01', '构(建)筑物类', 1, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414641034338305, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '02', '金属结构类', 2, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414730322681858, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '03', '设备设施类', 3, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414848933404673, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '04', '作业活动类', 4, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414913311776770, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '05', '管理类', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414974804467714, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '06', '环境类', 6, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1702421133117767760, 1701401848933404697, 'HAZARD_LEVEL', '1', '低风险', 2, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1703421133117767777, 1701401848933404697, 'HAZARD_LEVEL', '2', '一般风险', 3, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1704421133117767798, 1701401848933404697, 'HAZARD_LEVEL', '3', '较大风险', 4, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1705421133117767799, 1701401848933404697, 'HAZARD_LEVEL', '4', '重大风险', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1810401848933404671, 0, 'HAZARD_TYPE', '-1', '项目类别', 0, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1810414848933404673, 0, 'HAZARD_STATION_TYPE', '-1', '站点分类', 0, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1811421133117767702, 1810401848933404671, 'HAZARD_TYPE', '1', '构筑物类', 1, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812297148044677143, 1810401848933404671, 'HAZARD_TYPE', '2', '金属结构类', 2, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812297688044677144, 1810401848933404671, 'HAZARD_TYPE', '3', '设备设施类', 3, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812297688044677145, 1810401848933404671, 'HAZARD_TYPE', '4', '作业活动类', 4, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812297688044677146, 1810401848933404671, 'HAZARD_TYPE', '5', '管理类', 5, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812297688044677147, 1810401848933404671, 'HAZARD_TYPE', '6', '环境类', 6, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812414874722367716, 1810414848933404673, 'HAZARD_STATION_TYPE', '3', '水电站', 3, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812414974824267715, 1810414848933404673, 'HAZARD_STATION_TYPE', '2', '闸门', 1, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812414974824467714, 1810414848933404673, 'HAZARD_STATION_TYPE', '1', '水库', 2, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1468129281301524482, 0, 'RISKLEVEL', '-1', '风险等级', 2, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1468129396317728770, 1468129281301524482, 'RISKLEVEL', '10', '稍有危险', 1, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1468129468874993665, 1468129281301524482, 'RISKLEVEL', '20', '一般危险', 2, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1468129620985622530, 1468129281301524482, 'RISKLEVEL', '30', '显著危险', 3, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1468129679554883585, 1468129281301524482, 'RISKLEVEL', '40', '高度危险', 4, '', 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1630129576354127811, 0, 'EVALUATE_METHOD', '-1', '评价方法', 3, NULL, 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1630129576354127822, 1630129576354127811, 'EVALUATE_METHOD', '1', 'LS', 2, NULL, 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1630129576354127823, 1630129576354127811, 'EVALUATE_METHOD', '2', 'LEC', 4, NULL, 0, 0, 0, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701401848933404697, 0, 'HAZARD_LEVEL', '-1', '风险等级', 1, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414151353540610, 0, 'HIDDEN_DANGER_PROJECTS_TYPE', '-1', '风险隐患项目类别', 0, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414510251745282, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '01', '构(建)筑物类', 1, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414641034338305, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '02', '金属结构类', 2, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414730322681858, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '03', '设备设施类', 3, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414848933404673, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '04', '作业活动类', 4, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414913311776770, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '05', '管理类', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1701414974804467714, 1701414151353540610, 'HIDDEN_DANGER_PROJECTS_TYPE', '06', '环境类', 6, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1702421133117767760, 1701401848933404697, 'HAZARD_LEVEL', '1', '低风险', 2, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1703421133117767777, 1701401848933404697, 'HAZARD_LEVEL', '2', '一般风险', 3, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1704421133117767798, 1701401848933404697, 'HAZARD_LEVEL', '3', '较大风险', 4, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1705421133117767799, 1701401848933404697, 'HAZARD_LEVEL', '4', '重大风险', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1810401848933404671, 0, 'HAZARD_TYPE', '-1', '项目类别', 0, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1810414848933404673, 0, 'HAZARD_STATION_TYPE', '-1', '站点分类', 0, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1811421133117767702, 1810401848933404671, 'HAZARD_TYPE', '1', '构筑物类', 1, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812297148044677143, 1810401848933404671, 'HAZARD_TYPE', '2', '金属结构类', 2, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812297688044677144, 1810401848933404671, 'HAZARD_TYPE', '3', '设备设施类', 3, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812297688044677145, 1810401848933404671, 'HAZARD_TYPE', '4', '作业活动类', 4, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812297688044677146, 1810401848933404671, 'HAZARD_TYPE', '5', '管理类', 5, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812297688044677147, 1810401848933404671, 'HAZARD_TYPE', '6', '环境类', 6, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812414874722367716, 1810414848933404673, 'HAZARD_STATION_TYPE', '3', '水电站', 3, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812414974824267715, 1810414848933404673, 'HAZARD_STATION_TYPE', '2', '闸门', 1, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1812414974824467714, 1810414848933404673, 'HAZARD_STATION_TYPE', '1', '水库', 2, NULL, 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1810401848933404699, 0, 'INNER_DANGER_TYPE', '-1', '隐患类别', 4, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1811421133117767766, 1810401848933404699, 'INNER_DANGER_TYPE', '1', '人的不安全行为', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1811421133117767767, 1810401848933404699, 'INNER_DANGER_TYPE', '2', '环境的不安全行为', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1811421133117767768, 1810401848933404699, 'INNER_DANGER_TYPE', '3', '物的不安全行为', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1811421133117767769, 1810401848933404699, 'INNER_DANGER_TYPE', '4', '管理因素', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); +INSERT INTO `BLADEX`.`BLADE_DICT` (`ID`, `PARENT_ID`, `CODE`, `DICT_KEY`, `DICT_VALUE`, `SORT`, `REMARK`, `IS_SEALED`, `IS_DELETED`, `DICT_TYPE`, `APP_ID`, `APP_CODE`) VALUES (1811421133117767770, 1810401848933404699, 'INNER_DANGER_TYPE', '5', '其他', 5, '', 0, 0, 1, -1, 'HZIMS_SAFEPRODUCT'); + +DROP TABLE IF EXISTS `HZIMS_INNER_DANGER_INFO`; +CREATE TABLE `HZIMS_INNER_DANGER_INFO` ( + `ID` BIGINT(20) NOT NULL, + `CODE` VARCHAR(255) NOT NULL COMMENT '隐患编码', + `STATION_CODE` VARCHAR(255) DEFAULT NULL COMMENT '站点编码', + `PROCESS_INSTANCE_ID` VARCHAR(64) DEFAULT NULL COMMENT '流程实例', + `RISK_POINT_ID` VARCHAR(20) DEFAULT NULL COMMENT '风险点ID', + `RISK_POINT_NAME` VARCHAR(255) DEFAULT NULL COMMENT '风险点名称', + `INVESTIGATION` VARCHAR(255) DEFAULT NULL COMMENT '排查项目', + `RISK_POINT_TYPE` VARCHAR(255) DEFAULT NULL COMMENT '风险点类型', + `HIDDEN_DANGER_DEPT` BIGINT(20) DEFAULT NULL COMMENT '隐患责任部门', + `HIDDEN_DANGER_DEPT_NAME` VARCHAR(255) DEFAULT NULL COMMENT '隐患责任部门名称', + `HIDDEN_DANGER_ADDR` VARCHAR(255) DEFAULT NULL COMMENT '隐患地点', + `HIDDEN_DANGER_NAME` VARCHAR(255) DEFAULT NULL COMMENT '隐患名称', + `HIDDEN_DANGER_TYPE` VARCHAR(255) DEFAULT NULL COMMENT '隐患类别', + `HIDDEN_DANGER_PIC` VARCHAR(2048) DEFAULT NULL COMMENT '隐患照片地址', + `REGISTRANT` BIGINT(20) DEFAULT NULL COMMENT '登记人', + `REGISTRANT_NAME` VARCHAR(255) DEFAULT NULL COMMENT '登记人姓名', + `REGISTRANT_TIME` DATETIME DEFAULT NULL COMMENT '登记时间', + `CURRENT_LINK_HANDLER` VARCHAR(255) DEFAULT NULL COMMENT '当前环节处理人', + `CURRENT_OPERATOR` VARCHAR(255) DEFAULT NULL COMMENT '当前环节', + `JUDGE` BIGINT(20) DEFAULT NULL COMMENT '判定人', + `JUDGE_NAME` VARCHAR(255) DEFAULT NULL COMMENT '判定人姓名', + `JUDGE_RES` BIGINT(4) DEFAULT NULL COMMENT '判定结果(0不是隐患,1是隐患)', + `JUDGE_CONTEXT` VARCHAR(255) DEFAULT NULL COMMENT '判定内容', + `HIDDEN_DANGER_LEVEL` INT(4) DEFAULT NULL COMMENT '隐患等级(核查)(1.低风险;2一般风险;3较大风险;4重大风险)', + `CHECK_VIEW` VARCHAR(255) DEFAULT NULL COMMENT '核查意见', + `MEASURES` VARCHAR(255) DEFAULT NULL COMMENT '核查治理措施', + `CHECK_PEOPLE` BIGINT(20) DEFAULT NULL COMMENT '核查人', + `CHECK_PEOPLE_NAME` VARCHAR(255) DEFAULT NULL COMMENT '核查人姓名', + `CHECK_TIME` DATETIME DEFAULT NULL COMMENT '核查时间', + `RECTIFIER` BIGINT(20) DEFAULT NULL COMMENT '整改责任人', + `RECTIFIER_NAME` VARCHAR(255) DEFAULT NULL COMMENT '整改责任人姓名', + `RECTIFIER_DEPT` BIGINT(20) DEFAULT NULL COMMENT '整改责任部门ID', + `RECTIFIER_DEPT_NAME` VARCHAR(255) DEFAULT NULL COMMENT '整改责任部门名称', + `RECTIFIER_TYPE` TINYINT(4) DEFAULT NULL COMMENT '整改类型:1立即整改、2停产停业整改、3限期整改', + `DEAD_LINE` VARCHAR(255) DEFAULT NULL COMMENT '完成期限', + `RECTIFIER_ID` BIGINT(20) DEFAULT NULL COMMENT '整改通知单号', + `RECTIFIER_REASON` VARCHAR(255) DEFAULT NULL COMMENT '隐患存在原因', + `RECTIFIER_PIC` VARCHAR(4096) DEFAULT NULL COMMENT '治理后的效果图', + `RECTIFIER_TIME` DATETIME DEFAULT NULL COMMENT '反馈时间', + `CONCLUSION_RES` TINYINT(4) DEFAULT NULL COMMENT '验收结果(1完成,0未完成)', + `CONCLUSION_PEOPLE` BIGINT(20) DEFAULT NULL COMMENT '验收人', + `CONCLUSION_PEOPLE_NAME` VARCHAR(255) DEFAULT NULL COMMENT '验收人姓名', + `CONCLUSION_VIEW` VARCHAR(255) DEFAULT NULL COMMENT '验收意见', + `CONCLUSION_TIME` DATETIME DEFAULT NULL COMMENT '验收时间', + `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 DEFAULT NULL COMMENT '租户ID', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '更新时间', + `CREATE_USER` BIGINT(20) DEFAULT NULL COMMENT '创建人', + `UPDATE_USER` BIGINT(20) DEFAULT NULL COMMENT '更新人', + `IS_DELETED` TINYINT(4) NOT NULL COMMENT '是否删除', + `STATUS` TINYINT(4) DEFAULT NULL COMMENT '状态 ', + `CREATE_DEPT` BIGINT(20) DEFAULT NULL COMMENT '创建部门', + `TASK_ID` VARCHAR(255) DEFAULT NULL COMMENT '任务ID', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 ROW_FORMAT=DYNAMIC; -DROP TABLE IF EXISTS `hzims_inner_danger_info`; -CREATE TABLE `hzims_inner_danger_info` ( - `id` bigint(20) NOT NULL, - `code` varchar(255) NOT NULL COMMENT '隐患编码', - `station_code` varchar(255) DEFAULT NULL COMMENT '站点编码', - `process_instance_id` varchar(64) DEFAULT NULL COMMENT '流程实例', - `risk_point_id` varchar(20) DEFAULT NULL COMMENT '风险点Id', - `risk_point_name` varchar(255) DEFAULT NULL COMMENT '风险点名称', - `investigation` varchar(255) DEFAULT NULL COMMENT '排查项目', - `risk_point_type` varchar(255) DEFAULT NULL COMMENT '风险点类型', - `hidden_danger_dept` bigint(20) DEFAULT NULL COMMENT '隐患责任部门', - `hidden_danger_dept_name` varchar(255) DEFAULT NULL COMMENT '隐患责任部门名称', - `hidden_danger_addr` varchar(255) DEFAULT NULL COMMENT '隐患地点', - `hidden_danger_name` varchar(255) DEFAULT NULL COMMENT '隐患名称', - `hidden_danger_type` varchar(255) DEFAULT NULL COMMENT '隐患类别', - `hidden_danger_pic` varchar(2048) DEFAULT NULL COMMENT '隐患照片地址', - `registrant` bigint(20) DEFAULT NULL COMMENT '登记人', - `registrant_name` varchar(255) DEFAULT NULL COMMENT '登记人姓名', - `registrant_time` datetime DEFAULT NULL COMMENT '登记时间', - `current_link_handler` varchar(255) DEFAULT NULL COMMENT '当前环节处理人', - `current_operator` varchar(255) DEFAULT NULL COMMENT '当前环节', - `judge` bigint(20) DEFAULT NULL COMMENT '判定人', - `judge_name` varchar(255) DEFAULT NULL COMMENT '判定人姓名', - `judge_res` bigint(4) DEFAULT NULL COMMENT '判定结果(0不是隐患,1是隐患)', - `judge_context` varchar(255) DEFAULT NULL COMMENT '判定内容', - `hidden_danger_level` int(4) DEFAULT NULL COMMENT '隐患等级(核查)(1.低风险;2一般风险;3较大风险;4重大风险)', - `check_view` varchar(255) DEFAULT NULL COMMENT '核查意见', - `measures` varchar(255) DEFAULT NULL COMMENT '核查治理措施', - `check_people` bigint(20) DEFAULT NULL COMMENT '核查人', - `check_people_name` varchar(255) DEFAULT NULL COMMENT '核查人姓名', - `check_time` datetime DEFAULT NULL COMMENT '核查时间', - `rectifier` bigint(20) DEFAULT NULL COMMENT '整改责任人', - `rectifier_name` varchar(255) DEFAULT NULL COMMENT '整改责任人姓名', - `rectifier_dept` bigint(20) DEFAULT NULL COMMENT '整改责任部门ID', - `rectifier_dept_name` varchar(255) DEFAULT NULL COMMENT '整改责任部门名称', - `rectifier_type` tinyint(4) DEFAULT NULL COMMENT '整改类型:1立即整改、2停产停业整改、3限期整改', - `dead_line` varchar(255) DEFAULT NULL COMMENT '完成期限', - `rectifier_id` bigint(20) DEFAULT NULL COMMENT '整改通知单号', - `rectifier_reason` varchar(255) DEFAULT NULL COMMENT '隐患存在原因', - `rectifier_pic` varchar(4096) DEFAULT NULL COMMENT '治理后的效果图', - `rectifier_time` datetime DEFAULT NULL COMMENT '反馈时间', - `conclusion_res` tinyint(4) DEFAULT NULL COMMENT '验收结果(1完成,0未完成)', - `conclusion_people` bigint(20) DEFAULT NULL COMMENT '验收人', - `conclusion_people_name` varchar(255) DEFAULT NULL COMMENT '验收人姓名', - `conclusion_view` varchar(255) DEFAULT NULL COMMENT '验收意见', - `conclusion_time` datetime DEFAULT NULL COMMENT '验收时间', - `TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', - `CREATE_TIME` datetime NOT NULL COMMENT '创建时间', - `UPDATE_TIME` datetime DEFAULT NULL COMMENT '更新时间', - `CREATE_USER` bigint(20) DEFAULT NULL COMMENT '创建人', - `UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '更新人', - `IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除', - `STATUS` tinyint(4) DEFAULT NULL COMMENT '状态 ', - `CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建部门', - `task_id` varchar(255) DEFAULT NULL COMMENT '任务Id', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; + CREATE TABLE `HZIMS_RISK_HAZARD_CATEGORY` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `STATION_TYPE` TINYINT(4) DEFAULT NULL COMMENT '站点类别 :闸门、水库', + `CATEGORY` TINYINT(4) DEFAULT NULL COMMENT '类别 :构筑物类、金属结构类、设备设施类', + `PERIL_POINT` VARCHAR(255) DEFAULT NULL COMMENT '危险点', + `STATUS` TINYINT(4) DEFAULT '0' COMMENT '状态', + `CREATE_DEPT` BIGINT(20) DEFAULT NULL COMMENT '创建机构', + `CREATE_USER` BIGINT(20) NOT NULL COMMENT '创建人', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT NULL COMMENT '修改人', + `UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '修改时间', + `IS_DELETED` TINYINT(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', + `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 DEFAULT NULL COMMENT '租户ID', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 ROW_FORMAT=DYNAMIC; - CREATE TABLE `hzims_risk_hazard_category` ( - `ID` bigint(20) NOT NULL COMMENT '主键ID', - `STATION_TYPE` tinyint(4) DEFAULT NULL COMMENT '站点类别 :闸门、水库', - `CATEGORY` tinyint(4) DEFAULT NULL COMMENT '类别 :构筑物类、金属结构类、设备设施类', - `PERIL_POINT` varchar(255) DEFAULT NULL COMMENT '危险点', - `STATUS` tinyint(4) DEFAULT '0' COMMENT '状态', - `CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', - `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', - `CREATE_TIME` datetime NOT NULL COMMENT '创建时间', - `UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', - `UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', - `IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', - `TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', +CREATE TABLE `HZIMS_HIDDEN_DANGER_PLAN` ( + `ID` BIGINT(20) NOT NULL, + `PLAN_NAME` VARCHAR(50) NOT NULL COMMENT '计划名称', + `CHECK_TYPE` VARCHAR(2) DEFAULT NULL COMMENT '排查类型,字典:HD_CHECK_TYPE', + `CHECK_START_DATE` DATETIME NOT NULL COMMENT '排查日期(开始日期)', + `CHECK_END_DATE` DATETIME NOT NULL COMMENT '排查日期(结束日期)', + `CYCLE` VARCHAR(2) DEFAULT NULL COMMENT '排查周期,字典:HD_CHECK_CYCLE', + `CATEGORY_ID` BIGINT(20) NOT NULL COMMENT '风险点ID', + `CATEGORY_NAME` VARCHAR(50) DEFAULT NULL COMMENT '风险点名称', + `PLAN_TYPE` VARCHAR(50) NOT NULL COMMENT '计划类型:1为定时计划,2为临时计划,字典:HD_PLAN_TYPE', + `ENABLE` TINYINT(4) DEFAULT NULL COMMENT '是否启用:0为停用,1为启用', + `LAST_GENERATE_TASK_TIME` DATETIME DEFAULT NULL COMMENT '计划近期生成任务最后时间', + `STATUS` TINYINT(4) DEFAULT '1', + `TENANT_ID` VARCHAR(12) DEFAULT NULL, + `CREATE_DEPT` BIGINT(20) DEFAULT NULL, + `IS_DELETED` TINYINT(4) DEFAULT NULL, + `CREATE_USER` BIGINT(20) NOT NULL, + `CREATE_TIME` DATETIME NOT NULL, + `UPDATE_USER` BIGINT(20) DEFAULT NULL, + `UPDATE_TIME` DATETIME DEFAULT NULL, + `CHECK_USER_ID` BIGINT(20) DEFAULT NULL COMMENT '排查人员ID', + `NEXT_GENERATE_TASK_TIME` DATETIME DEFAULT NULL COMMENT '下一次任务生成时间', + `STATION_CODE` VARCHAR(20) NOT NULL DEFAULT '' COMMENT '站点编号', PRIMARY KEY (`ID`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; +) ENGINE=INNODB DEFAULT CHARSET=UTF8 ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_hidden_danger_plan` ( - `id` bigint(20) NOT NULL, - `plan_name` varchar(50) NOT NULL COMMENT '计划名称', - `check_type` varchar(2) DEFAULT NULL COMMENT '排查类型,字典:hd_check_type', - `check_start_date` datetime NOT NULL COMMENT '排查日期(开始日期)', - `check_end_date` datetime NOT NULL COMMENT '排查日期(结束日期)', - `cycle` varchar(2) DEFAULT NULL COMMENT '排查周期,字典:hd_check_cycle', - `category_id` bigint(20) NOT NULL COMMENT '风险点Id', - `category_name` varchar(50) DEFAULT NULL COMMENT '风险点名称', - `plan_type` varchar(50) NOT NULL COMMENT '计划类型:1为定时计划,2为临时计划,字典:hd_plan_type', - `enable` tinyint(4) DEFAULT NULL COMMENT '是否启用:0为停用,1为启用', - `last_generate_task_time` datetime DEFAULT NULL COMMENT '计划近期生成任务最后时间', - `status` tinyint(4) DEFAULT '1', - `TENANT_ID` varchar(12) DEFAULT NULL, - `CREATE_DEPT` bigint(20) DEFAULT NULL, - `IS_DELETED` tinyint(4) DEFAULT NULL, - `CREATE_USER` bigint(20) NOT NULL, - `CREATE_TIME` datetime NOT NULL, - `UPDATE_USER` bigint(20) DEFAULT NULL, - `UPDATE_TIME` datetime DEFAULT NULL, - `check_user_id` bigint(20) DEFAULT NULL COMMENT '排查人员ID', - `next_generate_task_time` datetime DEFAULT NULL COMMENT '下一次任务生成时间', - `station_code` varchar(20) NOT NULL DEFAULT '' COMMENT '站点编号', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +CREATE TABLE `HZIMS_HIDDEN_DANGER_PLAN_ITEM` ( + `ID` BIGINT(20) NOT NULL, + `PLAN_ID` BIGINT(20) NOT NULL COMMENT '隐患排查计划ID', + `AREA_ID` BIGINT(20) DEFAULT NULL COMMENT '区域/位置ID', + `AREA_NAME` VARCHAR(50) DEFAULT NULL COMMENT '区域/位置', + `CATEGORY_ID` BIGINT(20) DEFAULT NULL COMMENT '风险点ID', + `CATEGORY_NAME` VARCHAR(50) DEFAULT NULL COMMENT '风险点名称', + `RISK_TYPE` VARCHAR(50) DEFAULT NULL COMMENT '风险点类型', + `CHECK_ITEM_ID` BIGINT(20) DEFAULT NULL COMMENT '检查项ID', + `CHECK_ITEM_NAME` VARCHAR(50) NOT NULL COMMENT '检查项', + `STATUS` TINYINT(4) DEFAULT NULL, + `TENANT_ID` VARCHAR(12) DEFAULT NULL, + `CREATE_DEPT` BIGINT(20) DEFAULT NULL, + `IS_DELETED` TINYINT(4) DEFAULT NULL, + `CREATE_USER` BIGINT(20) NOT NULL, + `CREATE_TIME` DATETIME NOT NULL, + `UPDATE_USER` BIGINT(20) DEFAULT NULL, + `UPDATE_TIME` DATETIME DEFAULT NULL, + `ACCIDENT_INCENTIVE` VARCHAR(255) DEFAULT NULL COMMENT '事故诱因', + `CAUSE_CONSEQUENCE` VARCHAR(255) DEFAULT NULL COMMENT '导致后果', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB DEFAULT CHARSET=UTF8 ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_hidden_danger_plan_item` ( - `id` bigint(20) NOT NULL, - `plan_id` bigint(20) NOT NULL COMMENT '隐患排查计划ID', - `area_id` bigint(20) DEFAULT NULL COMMENT '区域/位置ID', - `area_name` varchar(50) DEFAULT NULL COMMENT '区域/位置', - `category_id` bigint(20) DEFAULT NULL COMMENT '风险点Id', - `category_name` varchar(50) DEFAULT NULL COMMENT '风险点名称', - `risk_type` varchar(50) DEFAULT NULL COMMENT '风险点类型', - `check_item_id` bigint(20) DEFAULT NULL COMMENT '检查项ID', - `check_item_name` varchar(50) NOT NULL COMMENT '检查项', - `status` tinyint(4) DEFAULT NULL, - `TENANT_ID` varchar(12) DEFAULT NULL, - `CREATE_DEPT` bigint(20) DEFAULT NULL, - `IS_DELETED` tinyint(4) DEFAULT NULL, - `CREATE_USER` bigint(20) NOT NULL, - `CREATE_TIME` datetime NOT NULL, - `UPDATE_USER` bigint(20) DEFAULT NULL, - `UPDATE_TIME` datetime DEFAULT NULL, - `accident_incentive` varchar(255) DEFAULT NULL COMMENT '事故诱因', - `cause_consequence` varchar(255) DEFAULT NULL COMMENT '导致后果', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +CREATE TABLE `HZIMS_RISK_HAZARD_ESTIMATE` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `TASK_ID` BIGINT(20) DEFAULT NULL COMMENT '风险任务排查ID', + `CATEGORY_ID` BIGINT(20) DEFAULT NULL COMMENT '风险点ID', + `LEVEL_ID` BIGINT(20) DEFAULT NULL COMMENT '风险等级ID', + `LEVEL_DESC` VARCHAR(255) DEFAULT NULL COMMENT '等级描述', + `SOURCE_ID` BIGINT(20) DEFAULT NULL COMMENT '危险源ID', + `HAZARD_NAME` VARCHAR(255) DEFAULT NULL COMMENT '危险源', + `ACCIDENT_INCENTIVE` VARCHAR(1024) DEFAULT NULL COMMENT '事故诱因', + `CAUSE_CONSEQUENCE` VARCHAR(1024) DEFAULT NULL COMMENT '导致后果', + `EVALUATION_METHOD` TINYINT(4) DEFAULT NULL COMMENT '评价方法 :LS、LEC', + `L_VALUE` DOUBLE(10,2) DEFAULT NULL COMMENT 'L值', + `E_VALUE` DOUBLE(10,2) DEFAULT NULL COMMENT 'E值', + `C_S_VALUE` DOUBLE(10,2) DEFAULT NULL COMMENT 'C/S值', + `R_D_VALUE` DOUBLE(10,2) DEFAULT NULL COMMENT 'R/D计算值', + `LEVEL` TINYINT(4) DEFAULT NULL COMMENT '风险等级', + `RECTIFICATION_DESC` VARCHAR(1024) DEFAULT NULL COMMENT '整改描述', + `RECTIFICATION_ATTACHMENT` VARCHAR(1024) DEFAULT NULL COMMENT '整改附件', + `STATUS` TINYINT(4) DEFAULT '0' COMMENT '状态', + `CREATE_DEPT` BIGINT(20) DEFAULT NULL COMMENT '创建机构', + `CREATE_USER` BIGINT(20) NOT NULL COMMENT '创建人', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT NULL COMMENT '修改人', + `UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '修改时间', + `IS_DELETED` TINYINT(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', + `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 DEFAULT NULL COMMENT '租户ID', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_risk_hazard_estimate` ( - `ID` bigint(20) NOT NULL COMMENT '主键ID', - `TASK_ID` bigint(20) DEFAULT NULL COMMENT '风险任务排查Id', - `CATEGORY_ID` bigint(20) DEFAULT NULL COMMENT '风险点Id', - `LEVEL_ID` bigint(20) DEFAULT NULL COMMENT '风险等级ID', - `LEVEL_DESC` varchar(255) DEFAULT NULL COMMENT '等级描述', - `SOURCE_ID` bigint(20) DEFAULT NULL COMMENT '危险源Id', - `HAZARD_NAME` varchar(255) DEFAULT NULL COMMENT '危险源', - `ACCIDENT_INCENTIVE` varchar(1024) DEFAULT NULL COMMENT '事故诱因', - `CAUSE_CONSEQUENCE` varchar(1024) DEFAULT NULL COMMENT '导致后果', - `EVALUATION_METHOD` tinyint(4) DEFAULT NULL COMMENT '评价方法 :LS、LEC', - `L_VALUE` double(10,2) DEFAULT NULL COMMENT 'L值', - `E_VALUE` double(10,2) DEFAULT NULL COMMENT 'E值', - `C_S_VALUE` double(10,2) DEFAULT NULL COMMENT 'C/S值', - `R_D_VALUE` double(10,2) DEFAULT NULL COMMENT 'R/D计算值', - `LEVEL` tinyint(4) DEFAULT NULL COMMENT '风险等级', - `RECTIFICATION_DESC` varchar(1024) DEFAULT NULL COMMENT '整改描述', - `RECTIFICATION_ATTACHMENT` varchar(1024) DEFAULT NULL COMMENT '整改附件', - `STATUS` tinyint(4) DEFAULT '0' COMMENT '状态', - `CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', - `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', - `CREATE_TIME` datetime NOT NULL COMMENT '创建时间', - `UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', - `UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', - `IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', - `TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', +CREATE TABLE `HZIMS_RISK_HAZARD_LEVEL` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `CATEGORY_ID` BIGINT(20) DEFAULT NULL COMMENT '风险点编号', + `SOURCE_ID` BIGINT(20) DEFAULT NULL COMMENT '危险源编号', + `HAZARD_NAME` VARCHAR(255) DEFAULT NULL COMMENT '危险源名称', + `R_MAX_VALUE` DOUBLE(10,2) DEFAULT NULL COMMENT 'R值上限值', + `R_MIN_VALUE` DOUBLE(10,2) DEFAULT NULL COMMENT 'R值下限值', + `RISK` TINYINT(4) DEFAULT NULL COMMENT '危险程度 : 极其危险、高度危险、中度危险、轻度危险', + `RISK_LEVEL` TINYINT(4) DEFAULT NULL COMMENT '风险等级 : 重大风险、较大风险、一般风险、低风险', + `COLOUR` TINYINT(4) DEFAULT NULL COMMENT '颜色标识 : 红、橙、黄、蓝', + `STATUS` TINYINT(4) DEFAULT '0' COMMENT '状态', + `CREATE_DEPT` BIGINT(20) DEFAULT NULL COMMENT '创建机构', + `CREATE_USER` BIGINT(20) NOT NULL COMMENT '创建人', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT NULL COMMENT '修改人', + `UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '修改时间', + `IS_DELETED` TINYINT(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', + `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 DEFAULT NULL COMMENT '租户ID', PRIMARY KEY (`ID`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; +) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_risk_hazard_level` ( - `ID` bigint(20) NOT NULL COMMENT '主键ID', - `CATEGORY_ID` bigint(20) DEFAULT NULL COMMENT '风险点编号', - `SOURCE_ID` bigint(20) DEFAULT NULL COMMENT '危险源编号', - `HAZARD_NAME` varchar(255) DEFAULT NULL COMMENT '危险源名称', - `R_MAX_VALUE` double(10,2) DEFAULT NULL COMMENT 'R值上限值', - `R_MIN_VALUE` double(10,2) DEFAULT NULL COMMENT 'R值下限值', - `RISK` tinyint(4) DEFAULT NULL COMMENT '危险程度 : 极其危险、高度危险、中度危险、轻度危险', - `RISK_LEVEL` tinyint(4) DEFAULT NULL COMMENT '风险等级 : 重大风险、较大风险、一般风险、低风险', - `COLOUR` tinyint(4) DEFAULT NULL COMMENT '颜色标识 : 红、橙、黄、蓝', - `STATUS` tinyint(4) DEFAULT '0' COMMENT '状态', - `CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', - `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', - `CREATE_TIME` datetime NOT NULL COMMENT '创建时间', - `UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', - `UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', - `IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', - `TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', +CREATE TABLE `HZIMS_RISK_HAZARD_SOURCE` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `CATEGORY_ID` BIGINT(20) DEFAULT NULL COMMENT '危险源项目类别ID', + `HAZARD_NAME` VARCHAR(255) DEFAULT NULL COMMENT '危险源', + `ACCIDENT_INCENTIVE` VARCHAR(1024) DEFAULT NULL COMMENT '事故诱因', + `CAUSE_CONSEQUENCE` VARCHAR(1024) DEFAULT NULL COMMENT '导致后果', + `EVALUATION_METHOD` TINYINT(4) DEFAULT NULL COMMENT '评价方法 :LS、LEC', + `L_UP_LIMIT` DOUBLE(10,2) DEFAULT NULL COMMENT 'L上限值', + `L_DOWN_LIMIT` DOUBLE(10,2) DEFAULT NULL COMMENT 'L下限值', + `E_UP_LIMIT` DOUBLE(10,2) DEFAULT NULL COMMENT 'E上限值', + `E_DOWN_LIMIT` DOUBLE(10,2) DEFAULT NULL COMMENT 'E下限值', + `C_S_UP_LIMIT` DOUBLE(10,2) DEFAULT NULL COMMENT 'C/S上限值', + `C_S_DOWN_LIMIT` DOUBLE(10,2) DEFAULT NULL COMMENT 'C/S下限值', + `STATUS` TINYINT(4) DEFAULT NULL COMMENT '状态', + `CREATE_DEPT` BIGINT(20) DEFAULT NULL COMMENT '创建机构', + `CREATE_USER` BIGINT(20) NOT NULL COMMENT '创建人', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT NULL COMMENT '修改人', + `UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '修改时间', + `IS_DELETED` TINYINT(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', + `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 DEFAULT NULL COMMENT '租户ID', PRIMARY KEY (`ID`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; +) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_risk_hazard_source` ( - `ID` bigint(20) NOT NULL COMMENT '主键ID', - `CATEGORY_ID` bigint(20) DEFAULT NULL COMMENT '危险源项目类别ID', - `HAZARD_NAME` varchar(255) DEFAULT NULL COMMENT '危险源', - `ACCIDENT_INCENTIVE` varchar(1024) DEFAULT NULL COMMENT '事故诱因', - `CAUSE_CONSEQUENCE` varchar(1024) DEFAULT NULL COMMENT '导致后果', - `EVALUATION_METHOD` tinyint(4) DEFAULT NULL COMMENT '评价方法 :LS、LEC', - `L_UP_LIMIT` double(10,2) DEFAULT NULL COMMENT 'L上限值', - `L_DOWN_LIMIT` double(10,2) DEFAULT NULL COMMENT 'L下限值', - `E_UP_LIMIT` double(10,2) DEFAULT NULL COMMENT 'E上限值', - `E_DOWN_LIMIT` double(10,2) DEFAULT NULL COMMENT 'E下限值', - `C_S_UP_LIMIT` double(10,2) DEFAULT NULL COMMENT 'C/S上限值', - `C_S_DOWN_LIMIT` double(10,2) DEFAULT NULL COMMENT 'C/S下限值', - `STATUS` tinyint(4) DEFAULT NULL COMMENT '状态', - `CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', - `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', - `CREATE_TIME` datetime NOT NULL COMMENT '创建时间', - `UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', - `UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', - `IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', - `TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', +CREATE TABLE `HZIMS_RISK_HAZARD_TASK` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `PROCESS_INSTANCE_ID` VARCHAR(64) CHARACTER SET UTF8 DEFAULT '' COMMENT '工作流实例', + `STATION_CODE` VARCHAR(64) DEFAULT NULL COMMENT '站点编码', + `STATION_NAME` VARCHAR(255) DEFAULT NULL COMMENT '站点名称', + `TASK_NAME` VARCHAR(255) DEFAULT NULL COMMENT '任务名称', + `WORK_ID` BIGINT(20) DEFAULT NULL COMMENT '作业区域', + `HEAD` BIGINT(20) DEFAULT NULL COMMENT '任务排查负责人', + `PLAN_START_TIME` DATETIME DEFAULT NULL COMMENT '排查任务计划开始时间', + `PLAN_END_TIME` DATETIME DEFAULT NULL COMMENT '排查任务计划完成时间', + `ACT_START_TIME` DATETIME DEFAULT NULL COMMENT '任务实际开始时间', + `ACT_END_TIME` DATETIME DEFAULT NULL COMMENT '任务实际完成时间', + `PROCESS_STEPS` VARCHAR(500) DEFAULT NULL COMMENT '流程步骤名称', + `NEXT_STEP_OPERATOR` VARCHAR(255) DEFAULT NULL COMMENT '流程步骤人员名称', + `STATUS` TINYINT(4) DEFAULT '0' COMMENT '状态', + `CREATE_DEPT` BIGINT(20) DEFAULT NULL COMMENT '创建机构', + `CREATE_USER` BIGINT(20) NOT NULL COMMENT '创建人', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT NULL COMMENT '修改人', + `UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '修改时间', + `IS_DELETED` TINYINT(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', + `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 DEFAULT NULL COMMENT '租户ID', PRIMARY KEY (`ID`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; +) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_risk_hazard_task` ( - `ID` bigint(20) NOT NULL COMMENT '主键ID', - `PROCESS_INSTANCE_ID` varchar(64) CHARACTER SET utf8 DEFAULT '' COMMENT '工作流实例', - `STATION_CODE` varchar(64) DEFAULT NULL COMMENT '站点编码', - `STATION_NAME` varchar(255) DEFAULT NULL COMMENT '站点名称', - `TASK_NAME` varchar(255) DEFAULT NULL COMMENT '任务名称', - `WORK_ID` bigint(20) DEFAULT NULL COMMENT '作业区域', - `HEAD` bigint(20) DEFAULT NULL COMMENT '任务排查负责人', - `PLAN_START_TIME` datetime DEFAULT NULL COMMENT '排查任务计划开始时间', - `PLAN_END_TIME` datetime DEFAULT NULL COMMENT '排查任务计划完成时间', - `ACT_START_TIME` datetime DEFAULT NULL COMMENT '任务实际开始时间', - `ACT_END_TIME` datetime DEFAULT NULL COMMENT '任务实际完成时间', - `PROCESS_STEPS` varchar(500) DEFAULT NULL COMMENT '流程步骤名称', - `NEXT_STEP_OPERATOR` varchar(255) DEFAULT NULL COMMENT '流程步骤人员名称', - `STATUS` tinyint(4) DEFAULT '0' COMMENT '状态', - `CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', - `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', - `CREATE_TIME` datetime NOT NULL COMMENT '创建时间', - `UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', - `UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', - `IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', - `TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', +CREATE TABLE `HZIMS_RISK_HAZARD_WORK` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `STATION_CODE` VARCHAR(64) DEFAULT NULL COMMENT '站点编码', + `STATION_NAME` VARCHAR(612) DEFAULT NULL COMMENT '站点名称', + `REGION_NAME` VARCHAR(255) DEFAULT NULL COMMENT '作业区域名称', + `LONGITUDE` DOUBLE(15,6) DEFAULT NULL COMMENT '经度', + `LATITUDE` DOUBLE(15,6) DEFAULT NULL COMMENT '纬度', + `HEAD` BIGINT(20) DEFAULT NULL COMMENT '负责人', + `REGULATOR` VARCHAR(64) DEFAULT NULL COMMENT '监管部门', + `MANAGE` BIGINT(20) DEFAULT NULL COMMENT '分管领导', + `STATUS` TINYINT(4) DEFAULT '0' COMMENT '状态', + `CREATE_DEPT` BIGINT(20) DEFAULT NULL COMMENT '创建机构', + `CREATE_USER` BIGINT(20) NOT NULL COMMENT '创建人', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT NULL COMMENT '修改人', + `UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '修改时间', + `IS_DELETED` TINYINT(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', + `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 DEFAULT NULL COMMENT '租户ID', PRIMARY KEY (`ID`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; +) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_risk_hazard_work` ( - `ID` bigint(20) NOT NULL COMMENT '主键ID', - `STATION_CODE` varchar(64) DEFAULT NULL COMMENT '站点编码', - `STATION_NAME` varchar(612) DEFAULT NULL COMMENT '站点名称', - `REGION_NAME` varchar(255) DEFAULT NULL COMMENT '作业区域名称', - `LONGITUDE` double(15,6) DEFAULT NULL COMMENT '经度', - `LATITUDE` double(15,6) DEFAULT NULL COMMENT '纬度', - `HEAD` bigint(20) DEFAULT NULL COMMENT '负责人', - `REGULATOR` varchar(64) DEFAULT NULL COMMENT '监管部门', - `MANAGE` bigint(20) DEFAULT NULL COMMENT '分管领导', - `STATUS` tinyint(4) DEFAULT '0' COMMENT '状态', - `CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', - `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', - `CREATE_TIME` datetime NOT NULL COMMENT '创建时间', - `UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', - `UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', - `IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', - `TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', +CREATE TABLE `HZIMS_RISK_WORK_SOURCE_CORRELATION` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `WORK_ID` BIGINT(20) DEFAULT NULL COMMENT '作业区域ID', + `CATEGORY_ID` BIGINT(20) DEFAULT NULL COMMENT '风险点ID', + `SOURCE_ID` BIGINT(20) DEFAULT NULL COMMENT '危险源ID', + `STATUS` TINYINT(4) DEFAULT '0' COMMENT '状态', + `CREATE_DEPT` BIGINT(20) DEFAULT NULL COMMENT '创建机构', + `CREATE_USER` BIGINT(20) NOT NULL COMMENT '创建人', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT NULL COMMENT '修改人', + `UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '修改时间', + `IS_DELETED` TINYINT(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', + `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 DEFAULT NULL COMMENT '租户ID', PRIMARY KEY (`ID`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; +) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_risk_work_source_correlation` ( - `ID` bigint(20) NOT NULL COMMENT '主键ID', - `WORK_ID` bigint(20) DEFAULT NULL COMMENT '作业区域ID', - `CATEGORY_ID` bigint(20) DEFAULT NULL COMMENT '风险点ID', - `SOURCE_ID` bigint(20) DEFAULT NULL COMMENT '危险源ID', - `STATUS` tinyint(4) DEFAULT '0' COMMENT '状态', - `CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', - `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', - `CREATE_TIME` datetime NOT NULL COMMENT '创建时间', - `UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', - `UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', - `IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', - `TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', +CREATE TABLE `HZIMS_SAFE_CHECK_COMPANY` ( + `ID` BIGINT(20) NOT NULL, + `TENANT_ID` VARCHAR(12) NOT NULL COMMENT '租户ID', + `START_TIME` DATETIME DEFAULT NULL COMMENT '开始时间', + `END_TIME` DATETIME DEFAULT NULL COMMENT '结束时间', + `PROBLEM` TEXT COMMENT '检查问题补充', + `ORG_ID` VARCHAR(500) DEFAULT NULL COMMENT '检查机构', + `STATUS` TINYINT(4) DEFAULT NULL COMMENT '业务状态', + `CREATE_DEPT` BIGINT(20) DEFAULT NULL COMMENT '创建单位', + `CREATE_USER` BIGINT(20) NOT NULL COMMENT '创建人', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT NULL COMMENT '修改人', + `UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '修改时间', + `IS_DELETED` TINYINT(4) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; +) ENGINE=INNODB DEFAULT CHARSET=UTF8 ROW_FORMAT=DYNAMIC COMMENT='公司检查'; -CREATE TABLE `hzims_safe_check_company` ( - `ID` bigint(20) NOT NULL, - `TENANT_ID` varchar(12) NOT NULL COMMENT '租户ID', - `START_TIME` datetime DEFAULT NULL COMMENT '开始时间', - `END_TIME` datetime DEFAULT NULL COMMENT '结束时间', - `PROBLEM` text COMMENT '检查问题补充', - `ORG_ID` varchar(500) DEFAULT NULL COMMENT '检查机构', - `STATUS` tinyint(4) DEFAULT NULL COMMENT '业务状态', - `CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建单位', - `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', - `CREATE_TIME` datetime NOT NULL COMMENT '创建时间', - `UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', - `UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', - `IS_DELETED` tinyint(4) NOT NULL DEFAULT '0', +CREATE TABLE `HZIMS_SAFE_CHECK_ITEM` ( + `ID` BIGINT(20) NOT NULL, + `TENANT_ID` VARCHAR(12) NOT NULL COMMENT '租户ID', + `PARENT_ITEM` BIGINT(20) DEFAULT NULL COMMENT '父级检查项', + `ITEM` VARCHAR(255) DEFAULT NULL COMMENT '检查项', + `TOTAL_SCORE` DOUBLE(5,1) DEFAULT NULL COMMENT '总分', + `SORT` VARCHAR(20) DEFAULT NULL COMMENT '排序', + `FIXED` TINYINT(4) DEFAULT NULL COMMENT '是否为固定检查项', + `STATUS` TINYINT(4) DEFAULT NULL COMMENT '业务状态(启用/停用)', + `CREATE_DEPT` BIGINT(20) DEFAULT NULL COMMENT '创建单位', + `CREATE_USER` BIGINT(20) NOT NULL COMMENT '创建人', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT NULL COMMENT '修改人', + `UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '修改时间', + `IS_DELETED` TINYINT(4) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='公司检查'; +) ENGINE=INNODB DEFAULT CHARSET=UTF8 ROW_FORMAT=DYNAMIC COMMENT='检查项管理'; -CREATE TABLE `hzims_safe_check_item` ( - `ID` bigint(20) NOT NULL, - `TENANT_ID` varchar(12) NOT NULL COMMENT '租户ID', - `PARENT_ITEM` bigint(20) DEFAULT NULL COMMENT '父级检查项', - `ITEM` varchar(255) DEFAULT NULL COMMENT '检查项', - `TOTAL_SCORE` double(5,1) DEFAULT NULL COMMENT '总分', - `SORT` varchar(20) DEFAULT NULL COMMENT '排序', - `FIXED` tinyint(4) DEFAULT NULL COMMENT '是否为固定检查项', - `STATUS` tinyint(4) DEFAULT NULL COMMENT '业务状态(启用/停用)', - `CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建单位', - `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', - `CREATE_TIME` datetime NOT NULL COMMENT '创建时间', - `UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', - `UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', - `IS_DELETED` tinyint(4) NOT NULL DEFAULT '0', +CREATE TABLE `HZIMS_SAFE_CHECK_ITEM_INSTANCE` ( + `ID` BIGINT(20) NOT NULL, + `TENANT_ID` VARCHAR(12) NOT NULL COMMENT '租户ID', + `OID` BIGINT(20) DEFAULT NULL COMMENT '原始ID,用于维持父子结构', + `PARENT_ITEM` BIGINT(20) DEFAULT NULL COMMENT '父级检查项', + `ITEM` VARCHAR(255) DEFAULT NULL COMMENT '检查项', + `TOTAL_SCORE` DOUBLE(5,1) DEFAULT NULL COMMENT '总分', + `SORT` VARCHAR(20) DEFAULT NULL COMMENT '排序', + `SYSTEM_SITUATION` VARCHAR(800) DEFAULT NULL COMMENT '系统检查情况', + `SITUATION` VARCHAR(800) DEFAULT NULL COMMENT '检查情况', + `SCORE` DOUBLE(5,1) DEFAULT NULL COMMENT '评分', + `CHECK_ID` BIGINT(20) DEFAULT NULL COMMENT '检查ID', + `ORG_ID` BIGINT(20) DEFAULT NULL COMMENT '机构ID', + `FIXED` TINYINT(4) DEFAULT NULL COMMENT '是否为固定检查项', + `STATUS` TINYINT(4) DEFAULT NULL COMMENT '业务状态', + `CREATE_DEPT` BIGINT(20) DEFAULT NULL COMMENT '创建单位', + `CREATE_USER` BIGINT(20) NOT NULL COMMENT '创建人', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT NULL COMMENT '修改人', + `UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '修改时间', + `IS_DELETED` TINYINT(4) NOT NULL DEFAULT '0', PRIMARY KEY (`ID`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='检查项管理'; +) ENGINE=INNODB DEFAULT CHARSET=UTF8 ROW_FORMAT=DYNAMIC COMMENT='检查项实例'; -CREATE TABLE `hzims_safe_check_item_instance` ( - `ID` bigint(20) NOT NULL, - `TENANT_ID` varchar(12) NOT NULL COMMENT '租户ID', - `OID` bigint(20) DEFAULT NULL COMMENT '原始ID,用于维持父子结构', - `PARENT_ITEM` bigint(20) DEFAULT NULL COMMENT '父级检查项', - `ITEM` varchar(255) DEFAULT NULL COMMENT '检查项', - `TOTAL_SCORE` double(5,1) DEFAULT NULL COMMENT '总分', - `SORT` varchar(20) DEFAULT NULL COMMENT '排序', - `SYSTEM_SITUATION` varchar(800) DEFAULT NULL COMMENT '系统检查情况', - `SITUATION` varchar(800) DEFAULT NULL COMMENT '检查情况', - `SCORE` double(5,1) DEFAULT NULL COMMENT '评分', - `CHECK_ID` bigint(20) DEFAULT NULL COMMENT '检查ID', - `ORG_ID` bigint(20) DEFAULT NULL COMMENT '机构ID', - `FIXED` tinyint(4) DEFAULT NULL COMMENT '是否为固定检查项', - `STATUS` tinyint(4) DEFAULT NULL COMMENT '业务状态', - `CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建单位', - `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', - `CREATE_TIME` datetime NOT NULL COMMENT '创建时间', - `UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', - `UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', - `IS_DELETED` tinyint(4) NOT NULL DEFAULT '0', +CREATE TABLE `HZIMS_HIDDEN_DANGER_TASK` ( + `ID` BIGINT(20) NOT NULL, + `PLAN_ID` BIGINT(20) NOT NULL COMMENT '隐患排查计划ID', + `PLAN_NAME` VARCHAR(50) NOT NULL COMMENT '计划名称', + `CATEGORY_ID` BIGINT(20) NOT NULL COMMENT '风险点ID', + `CATEGORY_NAME` VARCHAR(50) DEFAULT NULL COMMENT '风险点名称', + `PLAN_TYPE` VARCHAR(50) NOT NULL COMMENT '计划类型:1为定时计划,2为临时计划,字典:HD_PLAN_TYPE', + `CYCLE` VARCHAR(2) DEFAULT NULL COMMENT '排查周期,字典:HD_CHECK_CYCLE', + `START_TIME` DATETIME NOT NULL COMMENT '开始时间', + `END_TIME` DATETIME NOT NULL COMMENT '结束时间', + `PROCESS_INSTANCE_ID` VARCHAR(50) DEFAULT NULL COMMENT '流程ID', + `CHECK_USER_ID` BIGINT(20) NOT NULL COMMENT '排查人员ID', + `STATUS` TINYINT(4) DEFAULT NULL, + `TENANT_ID` VARCHAR(12) DEFAULT NULL, + `CREATE_DEPT` BIGINT(20) DEFAULT NULL, + `IS_DELETED` TINYINT(4) DEFAULT NULL, + `CREATE_USER` BIGINT(20) NOT NULL, + `CREATE_TIME` DATETIME NOT NULL, + `UPDATE_USER` BIGINT(20) DEFAULT NULL, + `UPDATE_TIME` DATETIME DEFAULT NULL, + `STATION_CODE` VARCHAR(20) NOT NULL DEFAULT '' COMMENT '站点编号', + `CATEGORY_TYPE` TINYINT(2) DEFAULT NULL COMMENT '风险点类别', PRIMARY KEY (`ID`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='检查项实例'; +) ENGINE=INNODB DEFAULT CHARSET=UTF8 ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_hidden_danger_task` ( - `id` bigint(20) NOT NULL, - `plan_id` bigint(20) NOT NULL COMMENT '隐患排查计划ID', - `plan_name` varchar(50) NOT NULL COMMENT '计划名称', - `category_id` bigint(20) NOT NULL COMMENT '风险点Id', - `category_name` varchar(50) DEFAULT NULL COMMENT '风险点名称', - `plan_type` varchar(50) NOT NULL COMMENT '计划类型:1为定时计划,2为临时计划,字典:hd_plan_type', - `cycle` varchar(2) DEFAULT NULL COMMENT '排查周期,字典:hd_check_cycle', - `start_time` datetime NOT NULL COMMENT '开始时间', - `end_time` datetime NOT NULL COMMENT '结束时间', - `process_instance_id` varchar(50) DEFAULT NULL COMMENT '流程ID', - `check_user_id` bigint(20) NOT NULL COMMENT '排查人员ID', - `status` tinyint(4) DEFAULT NULL, - `TENANT_ID` varchar(12) DEFAULT NULL, - `CREATE_DEPT` bigint(20) DEFAULT NULL, - `IS_DELETED` tinyint(4) DEFAULT NULL, - `CREATE_USER` bigint(20) NOT NULL, - `CREATE_TIME` datetime NOT NULL, - `UPDATE_USER` bigint(20) DEFAULT NULL, - `UPDATE_TIME` datetime DEFAULT NULL, - `station_code` varchar(20) NOT NULL DEFAULT '' COMMENT '站点编号', - `category_type` tinyint(2) DEFAULT NULL COMMENT '风险点类别', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +CREATE TABLE `HZIMS_HIDDEN_DANGER_TASK_ITEM` ( + `ID` BIGINT(20) NOT NULL, + `TASK_ID` BIGINT(20) NOT NULL COMMENT '隐患排查任务ID', + `CATEGORY_ID` BIGINT(20) DEFAULT NULL COMMENT '风险点ID', + `CATEGORY_NAME` VARCHAR(50) DEFAULT NULL COMMENT '风险点名称', + `RISK_TYPE` VARCHAR(50) DEFAULT NULL COMMENT '风险点类型', + `CHECK_ITEM_ID` BIGINT(20) DEFAULT NULL COMMENT '检查项ID', + `CHECK_ITEM_NAME` VARCHAR(50) NOT NULL COMMENT '检查项', + `AREA_ID` BIGINT(20) DEFAULT NULL COMMENT '区域/位置ID', + `AREA_NAME` VARCHAR(50) DEFAULT NULL COMMENT '区域/位置', + `CHECK_USER_ID` BIGINT(20) DEFAULT NULL COMMENT '排查人ID', + `CHECK_TIME` DATETIME DEFAULT NULL COMMENT '排查时间', + `ACCIDENT_INCENTIVE` VARCHAR(255) DEFAULT NULL COMMENT '事故诱因', + `CAUSE_CONSEQUENCE` VARCHAR(255) DEFAULT NULL COMMENT '导致后果', + `STATUS` TINYINT(4) DEFAULT NULL, + `TENANT_ID` VARCHAR(12) DEFAULT NULL, + `CREATE_DEPT` BIGINT(20) DEFAULT NULL, + `IS_DELETED` TINYINT(4) DEFAULT NULL, + `CREATE_USER` BIGINT(20) NOT NULL, + `CREATE_TIME` DATETIME NOT NULL, + `UPDATE_USER` BIGINT(20) DEFAULT NULL, + `UPDATE_TIME` DATETIME DEFAULT NULL, + `REMARK` VARCHAR(255) DEFAULT NULL COMMENT '排查备注', + `ATTACHMENT` VARCHAR(255) DEFAULT NULL COMMENT '上传附件', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB DEFAULT CHARSET=UTF8 ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_hidden_danger_task_item` ( - `id` bigint(20) NOT NULL, - `task_id` bigint(20) NOT NULL COMMENT '隐患排查任务ID', - `category_id` bigint(20) DEFAULT NULL COMMENT '风险点Id', - `category_name` varchar(50) DEFAULT NULL COMMENT '风险点名称', - `risk_type` varchar(50) DEFAULT NULL COMMENT '风险点类型', - `check_item_id` bigint(20) DEFAULT NULL COMMENT '检查项ID', - `check_item_name` varchar(50) NOT NULL COMMENT '检查项', - `area_id` bigint(20) DEFAULT NULL COMMENT '区域/位置ID', - `area_name` varchar(50) DEFAULT NULL COMMENT '区域/位置', - `check_user_id` bigint(20) DEFAULT NULL COMMENT '排查人ID', - `check_time` datetime DEFAULT NULL COMMENT '排查时间', - `accident_incentive` varchar(255) DEFAULT NULL COMMENT '事故诱因', - `cause_consequence` varchar(255) DEFAULT NULL COMMENT '导致后果', - `status` tinyint(4) DEFAULT NULL, - `TENANT_ID` varchar(12) DEFAULT NULL, - `CREATE_DEPT` bigint(20) DEFAULT NULL, - `IS_DELETED` tinyint(4) DEFAULT NULL, - `CREATE_USER` bigint(20) NOT NULL, - `CREATE_TIME` datetime NOT NULL, - `UPDATE_USER` bigint(20) DEFAULT NULL, - `UPDATE_TIME` datetime DEFAULT NULL, - `remark` varchar(255) DEFAULT NULL COMMENT '排查备注', - `attachment` varchar(255) DEFAULT NULL COMMENT '上传附件', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +CREATE TABLE `HZIMS_RISK_ESTIMATE` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `STATION_CODE` VARCHAR(64) DEFAULT NULL COMMENT '站点编码', + `STATION_NAME` VARCHAR(255) DEFAULT NULL COMMENT '站点名称', + `STATION_TYPE` TINYINT(4) DEFAULT NULL COMMENT '站点类别 :闸门、水库', + `ESTIMATE_YEAR` VARCHAR(10) DEFAULT NULL COMMENT '风险评估年度', + `STATUS` TINYINT(4) DEFAULT '0' COMMENT '状态', + `CREATE_DEPT` BIGINT(20) DEFAULT NULL COMMENT '创建机构', + `CREATE_USER` BIGINT(20) NOT NULL COMMENT '创建人', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT NULL COMMENT '修改人', + `UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '修改时间', + `IS_DELETED` TINYINT(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', + `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 DEFAULT NULL COMMENT '租户ID', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_risk_estimate` ( - `ID` bigint(20) NOT NULL COMMENT '主键ID', - `STATION_CODE` varchar(64) DEFAULT NULL COMMENT '站点编码', - `STATION_NAME` varchar(255) DEFAULT NULL COMMENT '站点名称', - `STATION_TYPE` tinyint(4) DEFAULT NULL COMMENT '站点类别 :闸门、水库', - `ESTIMATE_YEAR` varchar(10) DEFAULT NULL COMMENT '风险评估年度', - `STATUS` tinyint(4) DEFAULT '0' COMMENT '状态', - `CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', - `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', - `CREATE_TIME` datetime NOT NULL COMMENT '创建时间', - `UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', - `UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', - `IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', - `TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', +CREATE TABLE `HZIMS_RISK_ESTIMATE_POINT` ( + `ID` BIGINT(20) NOT NULL COMMENT '主键ID', + `ESTIMATE_ID` BIGINT(20) DEFAULT NULL COMMENT '风险评估ID', + `CATEGORY_ID` BIGINT(20) DEFAULT NULL COMMENT '风险点ID', + `CATEGORY` TINYINT(4) DEFAULT NULL COMMENT '风险点类别', + `PERIL_POINT` VARCHAR(255) DEFAULT NULL COMMENT '危险点', + `LEVEL_ID` BIGINT(20) DEFAULT NULL COMMENT '风险等级ID', + `LEVEL_DESC` VARCHAR(255) DEFAULT NULL COMMENT '等级描述', + `SOURCE_ID` BIGINT(20) DEFAULT NULL COMMENT '危险源ID', + `HAZARD_NAME` VARCHAR(255) DEFAULT NULL COMMENT '危险源', + `ACCIDENT_INCENTIVE` VARCHAR(1024) DEFAULT NULL COMMENT '事故诱因', + `CAUSE_CONSEQUENCE` VARCHAR(1024) DEFAULT NULL COMMENT '导致后果', + `EVALUATION_METHOD` TINYINT(4) DEFAULT NULL COMMENT '评价方法 :LS、LEC', + `L_UP_LIMIT` DOUBLE(10,2) DEFAULT NULL COMMENT 'L上限值', + `L_DOWN_LIMIT` DOUBLE(10,2) DEFAULT NULL COMMENT 'L下限值', + `E_UP_LIMIT` DOUBLE(10,2) DEFAULT NULL COMMENT 'E上限值', + `E_DOWN_LIMIT` DOUBLE(10,2) DEFAULT NULL COMMENT 'E下限值', + `C_S_UP_LIMIT` DOUBLE(10,2) DEFAULT NULL COMMENT 'C/S上限值', + `C_S_DOWN_LIMIT` DOUBLE(10,2) DEFAULT NULL COMMENT 'C/S下限值', + `L_VALUE` DOUBLE(10,2) DEFAULT NULL COMMENT 'L值', + `E_VALUE` DOUBLE(10,2) DEFAULT NULL COMMENT 'E值', + `C_S_VALUE` DOUBLE(10,2) DEFAULT NULL COMMENT 'C/S值', + `R_D_VALUE` DOUBLE(10,2) DEFAULT NULL COMMENT 'R/D计算值', + `LEVEL` TINYINT(4) DEFAULT NULL COMMENT '风险等级', + `STATUS` TINYINT(4) DEFAULT '0' COMMENT '状态', + `CREATE_DEPT` BIGINT(20) DEFAULT NULL COMMENT '创建机构', + `CREATE_USER` BIGINT(20) NOT NULL COMMENT '创建人', + `CREATE_TIME` DATETIME NOT NULL COMMENT '创建时间', + `UPDATE_USER` BIGINT(20) DEFAULT NULL COMMENT '修改人', + `UPDATE_TIME` DATETIME DEFAULT NULL COMMENT '修改时间', + `IS_DELETED` TINYINT(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', + `TENANT_ID` VARCHAR(12) CHARACTER SET UTF8 DEFAULT NULL COMMENT '租户ID', PRIMARY KEY (`ID`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; +) ENGINE=INNODB DEFAULT CHARSET=UTF8MB4 ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_risk_estimate_point` ( - `ID` bigint(20) NOT NULL COMMENT '主键ID', - `ESTIMATE_ID` bigint(20) DEFAULT NULL COMMENT '风险评估Id', - `CATEGORY_ID` bigint(20) DEFAULT NULL COMMENT '风险点Id', - `CATEGORY` tinyint(4) DEFAULT NULL COMMENT '风险点类别', - `PERIL_POINT` varchar(255) DEFAULT NULL COMMENT '危险点', - `LEVEL_ID` bigint(20) DEFAULT NULL COMMENT '风险等级Id', - `LEVEL_DESC` varchar(255) DEFAULT NULL COMMENT '等级描述', - `SOURCE_ID` bigint(20) DEFAULT NULL COMMENT '危险源Id', - `HAZARD_NAME` varchar(255) DEFAULT NULL COMMENT '危险源', - `ACCIDENT_INCENTIVE` varchar(1024) DEFAULT NULL COMMENT '事故诱因', - `CAUSE_CONSEQUENCE` varchar(1024) DEFAULT NULL COMMENT '导致后果', - `EVALUATION_METHOD` tinyint(4) DEFAULT NULL COMMENT '评价方法 :LS、LEC', - `L_UP_LIMIT` double(10,2) DEFAULT NULL COMMENT 'L上限值', - `L_DOWN_LIMIT` double(10,2) DEFAULT NULL COMMENT 'L下限值', - `E_UP_LIMIT` double(10,2) DEFAULT NULL COMMENT 'E上限值', - `E_DOWN_LIMIT` double(10,2) DEFAULT NULL COMMENT 'E下限值', - `C_S_UP_LIMIT` double(10,2) DEFAULT NULL COMMENT 'C/S上限值', - `C_S_DOWN_LIMIT` double(10,2) DEFAULT NULL COMMENT 'C/S下限值', - `L_VALUE` double(10,2) DEFAULT NULL COMMENT 'L值', - `E_VALUE` double(10,2) DEFAULT NULL COMMENT 'E值', - `C_S_VALUE` double(10,2) DEFAULT NULL COMMENT 'C/S值', - `R_D_VALUE` double(10,2) DEFAULT NULL COMMENT 'R/D计算值', - `LEVEL` tinyint(4) DEFAULT NULL COMMENT '风险等级', - `STATUS` tinyint(4) DEFAULT '0' COMMENT '状态', - `CREATE_DEPT` bigint(20) DEFAULT NULL COMMENT '创建机构', - `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', - `CREATE_TIME` datetime NOT NULL COMMENT '创建时间', - `UPDATE_USER` bigint(20) DEFAULT NULL COMMENT '修改人', - `UPDATE_TIME` datetime DEFAULT NULL COMMENT '修改时间', - `IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除 1-删除 0-未删除', - `TENANT_ID` varchar(12) CHARACTER SET utf8 DEFAULT NULL COMMENT '租户ID', +CREATE TABLE `HZIMS_RISK_CHECK` ( + `ID` BIGINT(20) NOT NULL, + `CATEGORY_ID` BIGINT(20) NOT NULL COMMENT '风险点ID', + `CATEGORY_NAME` VARCHAR(50) NOT NULL COMMENT '风险点名称', + `CHECK_ITEM` VARCHAR(255) NOT NULL COMMENT '检查项', + `STATUS` TINYINT(4) DEFAULT NULL, + `TENANT_ID` VARCHAR(12) DEFAULT NULL, + `CREATE_DEPT` BIGINT(20) DEFAULT NULL, + `IS_DELETED` TINYINT(4) DEFAULT NULL, + `CREATE_USER` BIGINT(20) NOT NULL, + `CREATE_TIME` DATETIME NOT NULL, + `UPDATE_USER` BIGINT(20) DEFAULT NULL, + `UPDATE_TIME` DATETIME DEFAULT NULL, + `TYPE` VARCHAR(2) DEFAULT NULL COMMENT '排查项类型', PRIMARY KEY (`ID`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 ROW_FORMAT=DYNAMIC; +) ENGINE=INNODB DEFAULT CHARSET=UTF8 ROW_FORMAT=DYNAMIC; -CREATE TABLE `hzims_risk_check` ( - `id` bigint(20) NOT NULL, - `category_id` bigint(20) NOT NULL COMMENT '风险点Id', - `category_name` varchar(50) NOT NULL COMMENT '风险点名称', - `check_item` varchar(255) NOT NULL COMMENT '检查项', - `status` tinyint(4) DEFAULT NULL, - `TENANT_ID` varchar(12) DEFAULT NULL, - `CREATE_DEPT` bigint(20) DEFAULT NULL, - `IS_DELETED` tinyint(4) DEFAULT NULL, - `CREATE_USER` bigint(20) NOT NULL, - `CREATE_TIME` datetime NOT NULL, - `UPDATE_USER` bigint(20) DEFAULT NULL, - `UPDATE_TIME` datetime DEFAULT NULL, - `type` varchar(2) DEFAULT NULL COMMENT '排查项类型', - PRIMARY KEY (`id`) USING BTREE -) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC; +ALTER TABLE `HZIMS_INNER_DANGER_INFO` ADD COLUMN `TASK_ID` VARCHAR(100) COMMENT '平台任务ID'; -alter table `hzims_inner_danger_info` add COLUMN `task_id` VARCHAR(100) comment '平台任务Id'; \ No newline at end of file +-- 电站安全标准附件字段长度限制 +ALTER TABLE HZIMS_REVIEW MODIFY COLUMN FILE_NAME VARCHAR(2048) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '附件文件名称' AFTER REVIEW_TIME; +ALTER TABLE HZIMS_REVIEW MODIFY COLUMN FILE_URL VARCHAR(1024) CHARACTER SET UTF8 COLLATE UTF8_GENERAL_CI NULL DEFAULT NULL COMMENT '附件文件URL' AFTER FILE_NAME; \ No newline at end of file