段飞宇
1 year ago
10 changed files with 889 additions and 27 deletions
@ -0,0 +1,5 @@ |
|||||||
|
<?xml version="1.0" encoding="utf-8"?><fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"><ns2:layout-master-set xmlns:ns2="http://www.w3.org/1999/XSL/Format" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:w15="http://schemas.microsoft.com/office/word/2012/wordml" xmlns:w16cid="http://schemas.microsoft.com/office/word/2016/wordml/cid" xmlns:w16se="http://schemas.microsoft.com/office/word/2015/wordml/symex" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"><ns2:simple-page-master margin-bottom="17mm" margin-left="1.25in" margin-right="1.25in" margin-top="15mm" master-name="s1-simple" page-height="297mm" page-width="210mm"><ns2:region-body column-count="1" column-gap="0.3in" margin-bottom="420.0pt" margin-left="0mm" margin-right="0mm" margin-top="420.0pt"/><ns2:region-before extent="420.0pt" region-name="xsl-region-before-simple"/><ns2:region-after extent="420.0pt" region-name="xsl-region-after-simple"/></ns2:simple-page-master><ns2:page-sequence-master master-name="s1"><ns2:repeatable-page-master-alternatives><ns2:conditional-page-master-reference master-reference="s1-simple"/></ns2:repeatable-page-master-alternatives></ns2:page-sequence-master></ns2:layout-master-set><fo:page-sequence force-page-count="no-force" id="section_s1" format="" master-reference="s1"><fo:static-content flow-name="xsl-footnote-separator"><fo:block><fo:leader rule-thickness="0.5pt" rule-style="solid" leader-length="100%" leader-pattern="rule"/></fo:block></fo:static-content><fo:flow flow-name="xsl-region-body"><fo:block break-before="auto" line-height="107%" space-after="14mm" space-before="14mm"><inline xmlns="http://www.w3.org/1999/XSL/Format" font-size="48.0pt"><inline font-family="等线">BODY CONTENT</inline></inline></fo:block><fo:block break-before="auto" line-height="107%" space-after="14mm" space-before="14mm"><inline xmlns="http://www.w3.org/1999/XSL/Format" font-size="48.0pt"><inline font-family="等线">BODY CONTENT</inline></inline></fo:block><fo:block break-before="auto" line-height="107%" space-after="14mm" space-before="14mm"><inline xmlns="http://www.w3.org/1999/XSL/Format" font-size="48.0pt"><inline font-family="等线">BODY CONTENT</inline></inline></fo:block><fo:block break-before="auto" line-height="107%" space-after="14mm" space-before="14mm"><inline xmlns="http://www.w3.org/1999/XSL/Format" font-size="48.0pt"><inline font-family="等线">BODY CONTENT</inline></inline></fo:block> |
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</fo:flow></fo:page-sequence></fo:root> |
@ -0,0 +1,67 @@ |
|||||||
|
SET FOREIGN_KEY_CHECKS=0; |
||||||
|
|
||||||
|
CREATE TABLE `hzims-middle`.`hzims_process_type` ( |
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT, |
||||||
|
`sequence` int(11) NOT NULL COMMENT '序号', |
||||||
|
`deployment_id` varchar(160) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前环节流程key', |
||||||
|
`deployment_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前流程名称', |
||||||
|
`segment` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '一个流程图的名称', |
||||||
|
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间', |
||||||
|
`update_time` datetime(0) NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间', |
||||||
|
`is_deleted` tinyint(4) NULL DEFAULT 0 COMMENT '逻辑删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工作流审批类型' ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-middle`.`hzims_statistics` MODIFY COLUMN `module_name_num` int(11) NULL DEFAULT 0 COMMENT '功能模块统计' AFTER `module_name`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-middle`.`hzims_statistics` MODIFY COLUMN `date_calculated` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '统计日期' AFTER `module_name_num`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-middle`.`hzims_statistics` DROP COLUMN `title`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-middle`.`hzims_statistics` DROP COLUMN `title_num`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-middle`.`hzims_statistics` DROP COLUMN `path`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-middle`.`hzims_statistics` DROP COLUMN `path_num`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-middle`.`hzims_sys_log` ENGINE = MyISAM; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-middle`.`hzims_sys_log` ADD INDEX `hzims_sys_log_operation_time_index`(`operation_time`) USING BTREE; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-middle`.`hzims_sys_log` ADD INDEX `hzims_sys_log_module_name_index`(`module_name`) USING BTREE; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-middle`.`hzims_sys_log` ADD INDEX `hzims_sys_log_title_index`(`title`) USING BTREE; |
||||||
|
|
||||||
|
CREATE TABLE `hzims-middle`.`hzims_workflow_operation_log` ( |
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT, |
||||||
|
`take_id` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前任务ID', |
||||||
|
`take_name` varchar(150) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前任务名称', |
||||||
|
`process_definition_key` char(160) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前环节流程ID', |
||||||
|
`process_instance_key` char(160) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '实例key', |
||||||
|
`next_step_operator` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '下一环节处理人', |
||||||
|
`variables` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '表单', |
||||||
|
`user_id` varchar(5000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户Id', |
||||||
|
`handleType` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ' 根据handleType区分是用户还是候选组角色 标识 0是用户 1是角色', |
||||||
|
`create_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间', |
||||||
|
`update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间', |
||||||
|
`is_deleted` tinyint(4) NULL DEFAULT NULL COMMENT '是否逻辑删除,0 可用,1. 不可用', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工作流操作日志' ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims-middle`.`process_dict` ( |
||||||
|
`dict_code` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '票据编码', |
||||||
|
`dict_sort` int(4) NULL DEFAULT 0 COMMENT '票据排序', |
||||||
|
`dict_key` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '票据字典码', |
||||||
|
`dict_value` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '票据流程标识', |
||||||
|
`dict_label` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '票据标签', |
||||||
|
`dict_type` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '票据类型', |
||||||
|
`is_default` char(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT 'N' COMMENT '是否默认(Y是 N否)', |
||||||
|
`status` tinyint(1) NULL DEFAULT 0 COMMENT '状态(0正常 1停用)', |
||||||
|
`create_dept` bigint(20) NULL DEFAULT NULL COMMENT '所属机构', |
||||||
|
`create_time` datetime(0) NOT NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间', |
||||||
|
`update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间', |
||||||
|
`remark` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '票据备注', |
||||||
|
PRIMARY KEY (`dict_code`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工作流字典表' ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
SET FOREIGN_KEY_CHECKS=1; |
@ -0,0 +1,575 @@ |
|||||||
|
SET FOREIGN_KEY_CHECKS=0; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`ecology_flow_data` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`STATION_ID` bigint(20) NULL DEFAULT NULL COMMENT '站点编号', |
||||||
|
`STATION_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称', |
||||||
|
`MON` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '月份', |
||||||
|
`ON_LINE` decimal(15, 2) NULL DEFAULT NULL COMMENT '在线率', |
||||||
|
`DEMONSTRATE` decimal(15, 2) NULL DEFAULT NULL COMMENT '达标率', |
||||||
|
`TIMELY` decimal(15, 2) NULL DEFAULT NULL COMMENT '及时率', |
||||||
|
`COMPLETE` decimal(15, 2) NULL DEFAULT NULL COMMENT '完整率', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', |
||||||
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
||||||
|
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除', |
||||||
|
`STATUS` tinyint(4) NOT NULL COMMENT '状态', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`ecology_flow_station` ( |
||||||
|
`ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', |
||||||
|
`STATION_ID` bigint(20) NULL DEFAULT NULL COMMENT '站点编号', |
||||||
|
`STATION_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称', |
||||||
|
`IS_ON_LINE` bigint(1) NULL DEFAULT NULL COMMENT '是否在线:0-离线 1-在线', |
||||||
|
`IS_DEMONSTRATE` bigint(1) NULL DEFAULT NULL COMMENT '是否达标:0-不达标 1-达标', |
||||||
|
`IS_TIMELY` bigint(1) NULL DEFAULT NULL COMMENT '是否及时:0-不及时 1-及时', |
||||||
|
`IS_COMPLETE` bigint(1) NULL DEFAULT NULL COMMENT '是否完整:0-不完整 1-完整', |
||||||
|
`CITY` varchar(1) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '城市: 0-黔东南 1-广宁', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', |
||||||
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
||||||
|
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除', |
||||||
|
`STATUS` tinyint(4) NOT NULL COMMENT '状态', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hz_ims_duty_main_template` MODIFY COLUMN `DUTY_ORDER_IDS` varchar(5000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '班组值班周期id' AFTER `TYPE`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_fill_over` MODIFY COLUMN `ENCL_NAME` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件名称' AFTER `ENCL_PATH`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_fill_over_config` MODIFY COLUMN `SORT` tinyint(4) NOT NULL COMMENT '排序' AFTER `UNIT_PRICE`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_fill_over_config` ADD UNIQUE INDEX `OVER_NAME`(`OVER_NAME`) USING BTREE; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_fill_power` MODIFY COLUMN `POWER_MON` double(20, 2) NULL DEFAULT 0.00 COMMENT '月发电量' AFTER `PLANNED_POWER_MON`; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`hzims_fill_wind` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`STATION_CODE` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点编号', |
||||||
|
`STATION_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称', |
||||||
|
`FILL_DATE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '填报日期', |
||||||
|
`PLAN` decimal(15, 2) NULL DEFAULT NULL COMMENT '计划发电量', |
||||||
|
`POWER` decimal(15, 2) NULL DEFAULT NULL COMMENT '发电量', |
||||||
|
`SPEED` decimal(15, 2) NULL DEFAULT NULL COMMENT '平均风速', |
||||||
|
`SURF_POWER` decimal(15, 2) NULL DEFAULT NULL COMMENT '上网电量', |
||||||
|
`BELOW_POWER` decimal(15, 2) NULL DEFAULT NULL COMMENT '下网电量', |
||||||
|
`AVAILABLE` decimal(15, 2) NULL DEFAULT NULL COMMENT '可用时长', |
||||||
|
`COMPREHENSIVE_POWER` decimal(15, 2) NULL DEFAULT NULL COMMENT '综合用电量', |
||||||
|
`PEAK` decimal(15, 2) NULL DEFAULT NULL COMMENT '峰值功率', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', |
||||||
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
||||||
|
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态', |
||||||
|
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_history_abnormal_alarm` MODIFY COLUMN `CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建单位' AFTER `SOE_EXPLAIN`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_history_abnormal_alarm` MODIFY COLUMN `CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人' AFTER `CREATE_DEPT`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_history_abnormal_alarm` MODIFY COLUMN `STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '业务状态' AFTER `TENANT_ID`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_history_abnormal_alarm` MODIFY COLUMN `UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间' AFTER `UPDATE_USER`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_history_abnormal_alarm` MODIFY COLUMN `IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除' AFTER `UPDATE_TIME`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_main_work_bench` MODIFY COLUMN `ORD` int(11) NULL DEFAULT NULL COMMENT '排序' AFTER `ENABLE_FLAG`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_main_work_bench` MODIFY COLUMN `REF_DEPT` varchar(2048) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '所属机构' AFTER `ORD`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_month_report` MODIFY COLUMN `OBJECT` blob NULL COMMENT '报表保存对象' AFTER `TYPE`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_access_plan` MODIFY COLUMN `phenomenon_id` bigint(20) NULL DEFAULT NULL COMMENT '现象ID' AFTER `DESCRIPITON`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_access_plan` DROP COLUMN `TASK_NAME`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_access_plan` DROP COLUMN `NEXT_STEP_OPERATOR`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_access_task` ADD COLUMN `MESSAGE_TEMPLATE_ID` bigint(20) NULL DEFAULT NULL COMMENT '模板id' AFTER `phenomenon_id`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_access_task` MODIFY COLUMN `PROCESS_INSTANCE_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '工作流实例' AFTER `EM_CODE`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_access_task` MODIFY COLUMN `ticket_id` bigint(20) NULL DEFAULT NULL AFTER `UPDATE_TIME`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_access_task` MODIFY COLUMN `delay_date` datetime(0) NULL DEFAULT NULL AFTER `ticket_id`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_access_task` MODIFY COLUMN `DELAY_STATUS` tinyint(4) NULL DEFAULT NULL AFTER `delay_date`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_fault` MODIFY COLUMN `FAULT_TYPE` tinyint(4) NULL DEFAULT NULL COMMENT '0- 标准;1 - 非标准' AFTER `FAULT_NAME`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_library` MODIFY COLUMN `EM_CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备编码' AFTER `PROC_DEF_ID`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_plan` MODIFY COLUMN `EM_CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备编码' AFTER `ID`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_plan` MODIFY COLUMN `TASK_TYPE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '0:系统生成任务,1:临时任务' AFTER `UPDATE_TIME`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `EM_CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备编码' AFTER `ID`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `TASK_CODE` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL AFTER `TYPE_CODE`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `DISPOSER` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '执行人(按,分隔)' AFTER `PROCESS_INSTANCE_ID`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `DISPOSE_TIME` datetime(0) NOT NULL COMMENT '任务按周期生成计划开始时间' AFTER `DISPOSER`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `EXECUTE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '任务执行日期' AFTER `DISPOSE_TIME`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `PUSH_MSG_STATUS` tinyint(4) NULL DEFAULT 0 COMMENT '消息推送状态 0=未推送 1=已推送' AFTER `DESCRIPTION`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `TASK_TYPE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '0' COMMENT '0:系统生成任务,1:临时任务' AFTER `UPDATE_TIME`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `DELAY_STATUS` tinyint(4) NULL DEFAULT NULL AFTER `TASK_TYPE`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `DELAY_DATE` datetime(0) NULL DEFAULT NULL AFTER `DELAY_STATUS`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `ticket_id` bigint(20) NULL DEFAULT NULL AFTER `DELAY_DATE`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `PLAN_END_TIME` datetime(0) NULL DEFAULT NULL AFTER `ticket_id`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `flow_status` int(11) NULL DEFAULT NULL COMMENT '流程状态' AFTER `MESSAGE_TEMPLATE_ID`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `flow_description` varchar(5000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '流程描述' AFTER `flow_status`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `next_step_operator` varchar(5000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '下一个审批人' AFTER `flow_description`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `flow_task_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前任务名' AFTER `flow_user_id`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `flow_task_id` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前任务名' AFTER `flow_task_name`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_phenomenon` MODIFY COLUMN `EM_CODE` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备编号' AFTER `NAME`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_phenomenon` MODIFY COLUMN `HANDLE_TASK_ID` bigint(20) NULL DEFAULT NULL COMMENT '处理任务ID' AFTER `HANDLE_TYPE`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_phenomenon` MODIFY COLUMN `HANDLER` bigint(20) NULL DEFAULT NULL COMMENT '处理人,处理工作流的第一个处理人' AFTER `HANDLE_TASK_ID`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_oper_phenomenon` MODIFY COLUMN `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人' AFTER `UPDATE_TIME`; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`hzims_oper_repair` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`EM_CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备code', |
||||||
|
`NUMBER` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编号', |
||||||
|
`COMPANY` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位', |
||||||
|
`HANDLE_STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '处理状态', |
||||||
|
`CHARGE` bigint(20) NULL DEFAULT NULL COMMENT '应急抢修负责人', |
||||||
|
`REPAIR_TEAM` bigint(20) NULL DEFAULT NULL COMMENT '应急抢修班组', |
||||||
|
`REPAIR_PERSONNEL` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '应急抢修人员', |
||||||
|
`REPAIR_TASK` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '应急抢修任务描述', |
||||||
|
`ORIGINATOR` bigint(20) NULL DEFAULT NULL COMMENT '应急抢修发起人', |
||||||
|
`SAFETY_MEASURES` varchar(2080) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '安全措施', |
||||||
|
`POINTS_ATTENTION` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '注意事项', |
||||||
|
`LICENSOR` bigint(20) NULL DEFAULT NULL COMMENT '许可人', |
||||||
|
`LICENSOR_TIME` datetime(0) NULL DEFAULT NULL COMMENT '许可时间', |
||||||
|
`LICENSOR_MEASURES` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '许可建议安全措施', |
||||||
|
`LICENSOR_MEMO` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '抢修完成许可描述', |
||||||
|
`LICENSOR_COMPLETE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '抢修完成许可时间', |
||||||
|
`IMPLEMENT_HOURS` varchar(1024) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '抢修工时', |
||||||
|
`IMPLEMENT_START_TIME` datetime(0) NULL DEFAULT NULL COMMENT '抢修开始时间', |
||||||
|
`IMPLEMENT_END_TIME` datetime(0) NULL DEFAULT NULL COMMENT '抢修结束时间', |
||||||
|
`IMPLEMENT_DESC` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '抢修描述', |
||||||
|
`PROCESS_INSTANCE_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '流程实例ID', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', |
||||||
|
`CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
||||||
|
`IS_DELETED` tinyint(4) NOT NULL COMMENT '是否删除', |
||||||
|
`STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态 ', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`hzims_review_standard` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`review_id` bigint(20) NOT NULL COMMENT '评审ID', |
||||||
|
`standard_id` tinyint(4) NOT NULL COMMENT '标准ID', |
||||||
|
`standard_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标准名称', |
||||||
|
`score` tinyint(4) NULL DEFAULT NULL COMMENT '分数', |
||||||
|
`status` tinyint(4) NULL DEFAULT NULL COMMENT '业务状态', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建单位', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`IS_DELETED` tinyint(4) NULL DEFAULT NULL, |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_station` DROP INDEX `hzims_station_pk`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_station_user` MODIFY COLUMN `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人' AFTER `UPDATE_TIME`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_station_video_type` MODIFY COLUMN `video_type` tinyint(4) NULL DEFAULT NULL COMMENT '视频类型;默认为1:清污机类型' AFTER `SORT`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims_operation`.`hzims_unit_running_time` MODIFY COLUMN `DATE_TIME` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '年月' AFTER `EM_CODE`; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`temp` ( |
||||||
|
`db_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
||||||
|
`tablename` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL, |
||||||
|
`LieName` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`temp_dept_sync` ( |
||||||
|
`id` bigint(20) NOT NULL, |
||||||
|
`old_dept_id` bigint(20) NULL DEFAULT NULL COMMENT '旧机构ID', |
||||||
|
`new_dept_id` bigint(20) NULL DEFAULT NULL COMMENT '新机构ID', |
||||||
|
`is_sync` tinyint(255) NULL DEFAULT NULL COMMENT '是否同步', |
||||||
|
`dept_name` varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '机构名称', |
||||||
|
`execute_time` datetime(0) NULL DEFAULT NULL COMMENT '执行时间', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_general_ci COMMENT = '机构同步表' ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`temp_sync_info` ( |
||||||
|
`sync_id` bigint(20) NOT NULL COMMENT '同步ID', |
||||||
|
`db_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数据库', |
||||||
|
`table_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '' COMMENT '表', |
||||||
|
`column_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '列', |
||||||
|
`be_replaced` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '被替换值', |
||||||
|
`replaced` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '替换值', |
||||||
|
`replaced_sql` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '替换sql', |
||||||
|
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '执行时间', |
||||||
|
`bak_replaced_sql` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '还原sql', |
||||||
|
`status` tinyint(4) NULL DEFAULT NULL COMMENT '执行状态' |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`wt_sp_allocation` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
||||||
|
`CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据号', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`STATUS` int(11) NULL DEFAULT NULL COMMENT '流程状态', |
||||||
|
`RPOC_INS_ID` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作流实例ID', |
||||||
|
`IN_WAREHOUSE_ID` bigint(20) NULL DEFAULT NULL COMMENT '入库仓库', |
||||||
|
`OUT_WAREHOUSE_ID` bigint(20) NULL DEFAULT NULL COMMENT '出库仓库', |
||||||
|
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
||||||
|
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`wt_sp_basic` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
||||||
|
`MANAGEMENT_ID` bigint(20) NULL DEFAULT NULL COMMENT '分类ID', |
||||||
|
`NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称', |
||||||
|
`CODE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编码', |
||||||
|
`SPECIFICATIONS` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '规格', |
||||||
|
`BRAND` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '品牌', |
||||||
|
`UNIT` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单位', |
||||||
|
`WEIGHT` decimal(10, 2) NULL DEFAULT NULL COMMENT '重量', |
||||||
|
`PRICE` decimal(10, 2) NULL DEFAULT NULL COMMENT '单价', |
||||||
|
`UPPER_LIMIT` int(10) NULL DEFAULT NULL COMMENT '库存上限', |
||||||
|
`LOWER_LIMIT` int(10) NULL DEFAULT NULL COMMENT '库存下限', |
||||||
|
`IS_WASTE` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '是否回收废品', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`STATUS` int(11) NULL DEFAULT NULL COMMENT '业务状态', |
||||||
|
`PARAMETER` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '主要参数', |
||||||
|
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
||||||
|
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
||||||
|
`CODE_NUMBER` bigint(20) NULL DEFAULT NULL COMMENT '序列号', |
||||||
|
`WATER_PLANT_ID` bigint(16) NULL DEFAULT NULL COMMENT '水厂ID', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`wt_sp_management` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键', |
||||||
|
`tenant_id` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
||||||
|
`NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '分类名称', |
||||||
|
`PARENT_ID` bigint(20) NULL DEFAULT NULL COMMENT '所属父级', |
||||||
|
`ANCESTORS` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '祖级节点', |
||||||
|
`CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '分类编码', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`STATUS` int(11) NULL DEFAULT NULL COMMENT '业务状态', |
||||||
|
`TYPE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备品备件:1,工具:2', |
||||||
|
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
||||||
|
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
||||||
|
`CODE_NUMBER` bigint(20) NULL DEFAULT NULL COMMENT '序列号', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`wt_sp_provider` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
||||||
|
`ORGANIZATION_ID` bigint(20) NULL DEFAULT NULL COMMENT '机构ID', |
||||||
|
`ORGANIZATION_CODE` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '机构编码', |
||||||
|
`SCOPE_OF_SUPPLY` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '供货范围', |
||||||
|
`SUPPLY_CYCLE` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '供货周期', |
||||||
|
`NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称', |
||||||
|
`LOGOGRAM` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称缩写', |
||||||
|
`SALESMAN` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '业务联系人', |
||||||
|
`LEGAL_PERSON` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '法人代表', |
||||||
|
`PHONE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '电话', |
||||||
|
`MOBILE_PHONE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '手机', |
||||||
|
`WEBSITE` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '网址', |
||||||
|
`ADDRESS` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '地址', |
||||||
|
`QUALIFIED_FLAG` int(11) NULL DEFAULT 1 COMMENT '是否合格(0:否,1:是)', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`STATUS` int(2) NULL DEFAULT NULL COMMENT '业务状态', |
||||||
|
`REMARK` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
||||||
|
`IS_DELETED` int(2) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`wt_sp_receive` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
||||||
|
`CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据号', |
||||||
|
`TICKET_CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工单ID', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`STATUS` int(11) NULL DEFAULT NULL COMMENT '流程状态', |
||||||
|
`RPOC_INS_ID` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作流实例ID', |
||||||
|
`STORAGE_ROOM` bigint(20) NULL DEFAULT NULL COMMENT '仓库库房', |
||||||
|
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
||||||
|
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`wt_sp_receives` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
||||||
|
`CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据号', |
||||||
|
`TICKET_CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工单ID', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`STATUS` int(11) NULL DEFAULT NULL COMMENT '流程状态', |
||||||
|
`RPOC_INS_ID` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作流实例ID', |
||||||
|
`STORAGE_ROOM` bigint(20) NULL DEFAULT NULL COMMENT '仓库库房', |
||||||
|
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
||||||
|
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
||||||
|
`VECEIVE_ID` bigint(20) NULL DEFAULT NULL COMMENT '工具领用单ID', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`wt_sp_record` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键', |
||||||
|
`BUSINESS_ID` bigint(20) NULL DEFAULT NULL COMMENT '业务表ID', |
||||||
|
`AMOUNT` int(11) NULL DEFAULT NULL COMMENT '数量AMOUNT', |
||||||
|
`SP_BASIC_ID` bigint(20) NULL DEFAULT NULL COMMENT '备品备件ID', |
||||||
|
`WAREHOUSE_ID` bigint(20) NULL DEFAULT NULL COMMENT '所属仓库', |
||||||
|
`TYPE` int(11) NULL DEFAULT NULL COMMENT '类型1:入库,2:出库,3:调拨,4:领用', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`STATUS` int(2) NULL DEFAULT NULL COMMENT '业务状态', |
||||||
|
`IS_DELETED` int(2) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`wt_sp_revert` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
||||||
|
`CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据号', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`STATUS` int(11) NULL DEFAULT NULL COMMENT '流程状态', |
||||||
|
`RPOC_INS_ID` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作流实例ID', |
||||||
|
`STORAGE_ROOM` bigint(20) NULL DEFAULT NULL COMMENT '仓库库房', |
||||||
|
`AMOUNT` int(11) NULL DEFAULT NULL COMMENT '数量', |
||||||
|
`SP_BASIC_ID` bigint(20) NULL DEFAULT NULL COMMENT '对应备件ID', |
||||||
|
`NAME` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备品备件名称', |
||||||
|
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
||||||
|
`CURRENT_OPERATOR` bigint(20) NULL DEFAULT NULL COMMENT '当前处理人', |
||||||
|
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`wt_sp_ticket_relation` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键', |
||||||
|
`ORDER_ID` bigint(20) NULL DEFAULT NULL COMMENT '出库单ID', |
||||||
|
`AMOUNT` int(11) NULL DEFAULT NULL COMMENT '数量', |
||||||
|
`TICKET` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工单号', |
||||||
|
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
||||||
|
`SP_BASIC_ID` bigint(20) NULL DEFAULT NULL COMMENT '备件ID', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`STATUS` int(2) NULL DEFAULT NULL COMMENT '业务状态', |
||||||
|
`IS_DELETED` int(2) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`wt_sp_tool_basic` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
||||||
|
`SP_BASIC_ID` bigint(20) NULL DEFAULT NULL COMMENT '对应备件ID', |
||||||
|
`QUALITY_GUARANTEE_PERIOD` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '保质期', |
||||||
|
`PRODUCTION_PERIOD` datetime(0) NULL DEFAULT NULL COMMENT '生产日期', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '领用时间', |
||||||
|
`CREATE_USER` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '领用人', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`ATACHMENT_ID` bigint(20) NULL DEFAULT NULL COMMENT '类型(文件类型)', |
||||||
|
`QUANTITY_RECEIVED` bigint(20) NULL DEFAULT NULL COMMENT '领用数量', |
||||||
|
`STATUS` int(11) NULL DEFAULT NULL COMMENT '业务状态', |
||||||
|
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
||||||
|
`WAREHOUSE_ID` bigint(20) NULL DEFAULT NULL COMMENT '所属仓库', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`wt_sp_total` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
||||||
|
`SP_BASIC_ID` bigint(20) NULL DEFAULT NULL COMMENT '对应备件ID', |
||||||
|
`MIN_STOCK` bigint(20) NULL DEFAULT NULL COMMENT '最低储备量', |
||||||
|
`MAX_STOCK` bigint(20) NULL DEFAULT NULL COMMENT '最高储备量', |
||||||
|
`STOCK` bigint(20) NULL DEFAULT NULL COMMENT '库存', |
||||||
|
`IN_PRICE` decimal(12, 2) NULL DEFAULT NULL COMMENT '最新入库单价', |
||||||
|
`OUT_PRICE` decimal(12, 2) NULL DEFAULT NULL COMMENT '最新出库单价', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`STATUS` int(11) NULL DEFAULT NULL COMMENT '业务状态', |
||||||
|
`OUT_STOCK` bigint(20) NULL DEFAULT NULL COMMENT '出库暂存', |
||||||
|
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
||||||
|
`WARNING_STOCK` bigint(20) NULL DEFAULT NULL COMMENT '警戒百分比', |
||||||
|
`WAREHOUSE_ID` bigint(20) NULL DEFAULT NULL COMMENT '所属仓库ID', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`wt_sp_type_dictionaries` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
||||||
|
`NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '分类名称', |
||||||
|
`CODE` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编码', |
||||||
|
`P_CODE` varchar(10) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '上级编码', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`STATUS` int(11) NULL DEFAULT NULL COMMENT '业务状态', |
||||||
|
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`wt_sp_warehouse` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
||||||
|
`ADDRESS` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '地址', |
||||||
|
`CODE` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编码', |
||||||
|
`NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称', |
||||||
|
`MANAGER` bigint(20) NULL DEFAULT NULL COMMENT '负责人', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`STATUS` int(11) NULL DEFAULT NULL COMMENT '业务状态', |
||||||
|
`STOCK` bigint(20) NULL DEFAULT NULL COMMENT '当前存量', |
||||||
|
`MAX_STOCK` bigint(20) NULL DEFAULT NULL COMMENT '库存上限', |
||||||
|
`MIN_STOCK` bigint(20) NULL DEFAULT NULL COMMENT '库存下限', |
||||||
|
`WARNING_STOCK` bigint(20) NULL DEFAULT NULL COMMENT '警戒百分比', |
||||||
|
`REMARK` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
||||||
|
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
||||||
|
`AFFILIATED_UNIT` bigint(20) NULL DEFAULT NULL COMMENT '所属单位', |
||||||
|
`AFFILIATED_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '所属单位名称', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`wt_sp_warehouse_in` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
||||||
|
`CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据号', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`TYPE` bigint(20) NULL DEFAULT NULL COMMENT '入库类型', |
||||||
|
`STATUS` int(11) NULL DEFAULT NULL COMMENT '业务状态', |
||||||
|
`RPOC_INS_ID` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作流实例ID', |
||||||
|
`STORAGE_ROOM` bigint(20) NULL DEFAULT NULL COMMENT '仓库库房', |
||||||
|
`CURRENT_OPERATOR` bigint(20) NULL DEFAULT NULL COMMENT '当前处理人', |
||||||
|
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
||||||
|
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
||||||
|
`TICKET_CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工单编号', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`wt_sp_warehouse_in_record` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
||||||
|
`CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '出入库编号', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`STATUS` int(11) NULL DEFAULT NULL COMMENT '业务状态', |
||||||
|
`TITLE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '标题', |
||||||
|
`STORAGE_ROOM` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '仓库库房', |
||||||
|
`TYPE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型,用枚举来判断是工具还是备品备件', |
||||||
|
`OPERATION` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '操作:用枚举来判断是出库还是入库', |
||||||
|
`AMOUNT` int(11) NULL DEFAULT NULL COMMENT '数量', |
||||||
|
`SP_BASIC_ID` bigint(20) NULL DEFAULT NULL COMMENT '备品备件ID', |
||||||
|
`NAME` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备品备件名称', |
||||||
|
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
||||||
|
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims_operation`.`wt_sp_warehouse_out` ( |
||||||
|
`ID` bigint(20) NOT NULL COMMENT '主键', |
||||||
|
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '部门ID', |
||||||
|
`CODE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '单据号', |
||||||
|
`CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', |
||||||
|
`CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间', |
||||||
|
`UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', |
||||||
|
`STATUS` int(11) NULL DEFAULT NULL COMMENT '流程状态', |
||||||
|
`RPOC_INS_ID` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作流实例ID', |
||||||
|
`STORAGE_ROOM` bigint(20) NULL DEFAULT NULL COMMENT '仓库库房', |
||||||
|
`REMARKS` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', |
||||||
|
`IS_DELETED` int(11) NULL DEFAULT 0 COMMENT '是否已删除(0:否,1:是)', |
||||||
|
`TYPE` bigint(20) NULL DEFAULT NULL COMMENT '出库类型', |
||||||
|
PRIMARY KEY (`ID`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
SET FOREIGN_KEY_CHECKS=1; |
@ -0,0 +1,180 @@ |
|||||||
|
SET FOREIGN_KEY_CHECKS=0; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `signage` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点标识-两票编码' AFTER `ticket_type`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `signage_code` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编号(原站点ID)' AFTER `signage`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `flow_user_id` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户Id' AFTER `signage_code`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `flow_task_id` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前任务Id' AFTER `flow_user_id`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `flow_task_name` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前任务名称' AFTER `flow_task_id`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `next_step_operator` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '下一个审批人' AFTER `flow_task_name`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `flow_status` int(11) NULL DEFAULT NULL COMMENT '流程状态' AFTER `next_step_operator`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `flow_description` varchar(6000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '流程描述' AFTER `flow_status`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `project_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目名称' AFTER `flow_description`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_info` ADD COLUMN `class_group_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '班组' AFTER `project_name`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_standard_ticket_measure` ADD COLUMN `operation_time` datetime(0) NULL DEFAULT NULL COMMENT '操作时间' AFTER `matter_group`; |
||||||
|
|
||||||
|
CREATE TABLE `hzims-ticket`.`hzims_ticket_info_danger` ( |
||||||
|
`id` bigint(20) NULL DEFAULT NULL COMMENT '编号', |
||||||
|
`ticket_id` bigint(20) NULL DEFAULT NULL, |
||||||
|
`dangerous_point` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '危险点', |
||||||
|
`maintenance` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '安全措施', |
||||||
|
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) COMMENT '创建时间', |
||||||
|
`update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP(0) ON UPDATE CURRENT_TIMESTAMP(0) COMMENT '更新时间', |
||||||
|
`is_deleted` tinyint(4) NULL DEFAULT 0 COMMENT '逻辑删除' |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
CREATE TABLE `hzims-ticket`.`hzims_work_ticket_finish` ( |
||||||
|
`id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '编号', |
||||||
|
`ticket_id` bigint(20) NULL DEFAULT NULL COMMENT '工作票编号', |
||||||
|
`temp_ground_num` int(11) NULL DEFAULT NULL COMMENT '临时接地线', |
||||||
|
`temp_dismantle_num` int(11) NULL DEFAULT NULL COMMENT '临时拆除几组', |
||||||
|
`ground_num` int(11) NULL DEFAULT NULL COMMENT '接地线几组', |
||||||
|
`dismantle_num` int(11) NULL DEFAULT NULL COMMENT '拆除几组', |
||||||
|
`retain_num` int(11) NULL DEFAULT NULL COMMENT '保留几组', |
||||||
|
`create_time` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', |
||||||
|
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', |
||||||
|
`principal` bigint(20) NULL DEFAULT NULL COMMENT '负责人名称', |
||||||
|
`licensor` bigint(20) NULL DEFAULT NULL COMMENT '许可人', |
||||||
|
`licensor_end_time` datetime(0) NULL DEFAULT NULL COMMENT '工作票终结时间', |
||||||
|
`principal_end_time` datetime(0) NULL DEFAULT NULL COMMENT '负责人工作结束时间', |
||||||
|
`content` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注', |
||||||
|
`tell_content` varchar(5000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '交底内容', |
||||||
|
`work_end_time` datetime(0) NULL DEFAULT NULL COMMENT '结束时间', |
||||||
|
`brake_number` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '刀闸编号', |
||||||
|
`guardian` bigint(20) NULL DEFAULT NULL COMMENT '监护人', |
||||||
|
`guardian_place` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '监护人地址', |
||||||
|
`other_items` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '其他事项', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工作结束' ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `power` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT ' 工作条件( 停电或不停电)' AFTER `watch_principal_end_time`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `flow_user_id` varchar(5000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '用户Id' AFTER `step_operator`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `project_name` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '项目名称' AFTER `flow_task_name`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `job_receiver` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作接收人' AFTER `project_name`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `job_receiver_time` datetime(0) NULL DEFAULT NULL COMMENT '工作接收人时间' AFTER `job_receiver`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `is_safety` tinyint(1) NULL DEFAULT 0 COMMENT '安全隔离措施附页 (true,展示附件,false,不展示附件)' AFTER `job_receiver_time`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `is_hazard` tinyint(1) NULL DEFAULT 0 COMMENT '危险点分析与预控措施票 (true,展示附件,false,不展示附件)' AFTER `is_safety`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `is_railway` tinyint(1) NULL DEFAULT 0 COMMENT '动火工作票 (true,展示附件,false,不展示附件)' AFTER `is_hazard`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `is_limited` tinyint(1) NULL DEFAULT 0 COMMENT ' 有限空间监测记录单(true,展示附件,false,不展示附件)' AFTER `is_railway`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` ADD COLUMN `is_start` tinyint(1) NULL DEFAULT 0 COMMENT '每日开工和收工时间附页' AFTER `is_limited`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` MODIFY COLUMN `flow_description` varchar(6000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '流程描述' AFTER `flow_status`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` MODIFY COLUMN `follower_num` int(11) NULL DEFAULT 1 COMMENT '附页第几张' AFTER `flow_description`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` MODIFY COLUMN `next_step_operator` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '下一个审批人' AFTER `input`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` MODIFY COLUMN `step_operator` varchar(60) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '当前审批人' AFTER `next_step_operator`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` DROP COLUMN `is_power`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` DROP COLUMN `start_date_time`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` DROP COLUMN `end_date_time`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` DROP COLUMN `content`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` DROP COLUMN `work_ticket_end_time`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_info` DROP COLUMN `tell_content`; |
||||||
|
|
||||||
|
CREATE TABLE `hzims-ticket`.`hzims_work_ticket_info_copy1` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键', |
||||||
|
`em_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备名称', |
||||||
|
`em_name` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备名称', |
||||||
|
`process_instance_id` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作流ID', |
||||||
|
`type` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '工作票类型', |
||||||
|
`company` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '单位', |
||||||
|
`code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '编号', |
||||||
|
`task_type` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联业务类型', |
||||||
|
`task_id` bigint(20) NULL DEFAULT NULL COMMENT '关联业务ID', |
||||||
|
`task_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '关联业务名称', |
||||||
|
`class_group` bigint(20) NULL DEFAULT NULL COMMENT '班组', |
||||||
|
`class_group_name` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '班组名称', |
||||||
|
`class_group_members` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '班组成员', |
||||||
|
`class_group_members_manual` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '班组成员手填', |
||||||
|
`address_equ_name` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作地点及设备名称', |
||||||
|
`work_content` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作任务及内容', |
||||||
|
`plan_start_time` datetime(0) NULL DEFAULT NULL COMMENT '计划开始时间', |
||||||
|
`plan_end_time` datetime(0) NULL DEFAULT NULL COMMENT '计划结束时间', |
||||||
|
`signer` bigint(20) NULL DEFAULT NULL COMMENT '签发人', |
||||||
|
`principal` bigint(20) NULL DEFAULT NULL COMMENT '负责人', |
||||||
|
`principal_manual` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '负责人手填', |
||||||
|
`licensor` bigint(20) NULL DEFAULT NULL COMMENT '许可人', |
||||||
|
`license_time` datetime(0) NULL DEFAULT NULL COMMENT '许可时间', |
||||||
|
`flow_code` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '流程进行code', |
||||||
|
`license_end_time` datetime(0) NULL DEFAULT NULL COMMENT '许可人确认工作结束时间', |
||||||
|
`is_evaluate` tinyint(4) NULL DEFAULT 0 COMMENT '是否评价', |
||||||
|
`status` tinyint(4) NULL DEFAULT NULL COMMENT '1:未完成 2:执行中 3:已完成', |
||||||
|
`tenant_id` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||||
|
`create_user` bigint(20) NOT NULL COMMENT '创建人', |
||||||
|
`create_time` datetime(0) NOT NULL COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) NULL DEFAULT NULL, |
||||||
|
`update_time` datetime(0) NULL DEFAULT NULL, |
||||||
|
`is_deleted` tinyint(4) NULL DEFAULT NULL, |
||||||
|
`create_dept` bigint(20) NOT NULL COMMENT '创建部门', |
||||||
|
`confirm_img_urls` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作负责人确认工作完成上传图片地址', |
||||||
|
`confirm_img_filenames` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '工作负责人确认工作完成上传图片名称', |
||||||
|
`sort` tinyint(4) NULL DEFAULT NULL COMMENT '排序', |
||||||
|
`confirm_work_time` datetime(0) NULL DEFAULT NULL COMMENT '工作负责人确认工作完成时间', |
||||||
|
`pattern` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型(1:值班人员添加2:许可人添加)', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工作票' ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_safety_measure` MODIFY COLUMN `type` varchar(4) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '类型(1:值班人员添加2:签发人添加3:许可人添加)' AFTER `measure`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_safety_measure` MODIFY COLUMN `execute_img_url` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '拍照上传图片url' AFTER `execute_remark`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_safety_measure` MODIFY COLUMN `completer` bigint(20) NULL DEFAULT NULL COMMENT '内容执行人' AFTER `status`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_safety_measure` MODIFY COLUMN `complete_img_url` varchar(300) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '完成内容上传图片地址' AFTER `complete_time`; |
||||||
|
|
||||||
|
ALTER TABLE `hzims-ticket`.`hzims_work_ticket_safety_measure` MODIFY COLUMN `pattern` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT '1' COMMENT '类型(1:值班人员添加2:许可人添加)' AFTER `sort`; |
||||||
|
|
||||||
|
CREATE TABLE `hzims-ticket`.`hzims_work_ticket_safety_measure_copy1` ( |
||||||
|
`id` bigint(20) NOT NULL COMMENT '主键ID', |
||||||
|
`ticket_id` bigint(20) NOT NULL COMMENT '工作票ID', |
||||||
|
`measure_id` bigint(20) NULL DEFAULT NULL COMMENT '安全措施ID', |
||||||
|
`matter_group` bigint(20) NULL DEFAULT NULL COMMENT '分组', |
||||||
|
`measure` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '安全措施', |
||||||
|
`type` varchar(4) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '类型(1:值班人员添加2:签发人添加3:许可人添加)', |
||||||
|
`executor` bigint(20) NULL DEFAULT NULL COMMENT '执行人', |
||||||
|
`execute_time` datetime(0) NULL DEFAULT NULL COMMENT '执行时间', |
||||||
|
`execute_remark` tinytext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '执行情况', |
||||||
|
`execute_img_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '拍照上传图片url', |
||||||
|
`status` tinyint(20) NULL DEFAULT NULL, |
||||||
|
`completer` bigint(20) NULL DEFAULT NULL COMMENT '内容执行人', |
||||||
|
`complete_time` datetime(0) NULL DEFAULT NULL COMMENT '内容完成时间', |
||||||
|
`complete_img_url` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '完成内容上传图片地址', |
||||||
|
`create_user` bigint(20) NOT NULL COMMENT '创建人', |
||||||
|
`create_time` datetime(0) NOT NULL COMMENT '创建时间', |
||||||
|
`update_user` bigint(20) NULL DEFAULT NULL COMMENT '更新人', |
||||||
|
`update_time` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', |
||||||
|
`is_deleted` tinyint(4) NULL DEFAULT NULL, |
||||||
|
`create_dept` bigint(20) NOT NULL COMMENT '创建机构', |
||||||
|
`tenant_id` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户id', |
||||||
|
`sort` tinyint(4) NULL DEFAULT NULL COMMENT '排序', |
||||||
|
PRIMARY KEY (`id`) USING BTREE |
||||||
|
) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '工作票安全措施列表' ROW_FORMAT = Dynamic; |
||||||
|
|
||||||
|
DROP TABLE `hzims-ticket`.`hzims_workflow_operation_log`; |
||||||
|
|
||||||
|
SET FOREIGN_KEY_CHECKS=1; |
Binary file not shown.
Binary file not shown.
Loading…
Reference in new issue