diff --git a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/service/impl/WtSpBasicServiceImpl.java b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/service/impl/WtSpBasicServiceImpl.java index c33c23e..0dd5b53 100644 --- a/hzims-service/assets/src/main/java/com/hnac/hzims/spare/service/impl/WtSpBasicServiceImpl.java +++ b/hzims-service/assets/src/main/java/com/hnac/hzims/spare/service/impl/WtSpBasicServiceImpl.java @@ -1,6 +1,7 @@ package com.hnac.hzims.spare.service.impl; +import cn.afterturn.easypoi.excel.entity.ImportParams; import com.alibaba.druid.support.json.JSONUtils; import com.alibaba.excel.EasyExcel; import com.alibaba.excel.ExcelWriter; @@ -56,7 +57,10 @@ import org.springframework.util.CollectionUtils; import org.springframework.web.multipart.MultipartFile; import javax.servlet.http.HttpServletResponse; -import java.io.*; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; import java.net.URLEncoder; import java.util.*; import java.util.stream.Collectors; diff --git a/hzims-service/inspect/src/main/resources/db/1.0.0.sql b/hzims-service/inspect/src/main/resources/db/1.0.0.sql index 9747c3a..ed786cf 100644 --- a/hzims-service/inspect/src/main/resources/db/1.0.0.sql +++ b/hzims-service/inspect/src/main/resources/db/1.0.0.sql @@ -1,6 +1,5 @@ --- 巡检计划添加消息模板字段 -alter table `hz_st_re_plan` add column `message_template_id` bigint(20) comment '消息模板ID'; --- 巡检任务添加消息模板字段 -alter table `hz_st_ex_task` add column `message_template_id` bigint(20) comment '消息模板ID'; +SET FOREIGN_KEY_CHECKS=0; -alter table hz_st_ex_task add COLUMN `push_status` bigint(1) default null comment '推送状态'; \ No newline at end of file +ALTER TABLE `hzims_inspect`.`hz_st_ex_task` ADD COLUMN `push_status` bigint(1) NULL DEFAULT NULL COMMENT '推送状态' AFTER `message_template_id`; + +SET FOREIGN_KEY_CHECKS=1; \ No newline at end of file diff --git a/hzims-service/message/src/main/resources/db/1.0.0.sql b/hzims-service/message/src/main/resources/db/1.0.0.sql index fb8dac5..81fc953 100644 --- a/hzims-service/message/src/main/resources/db/1.0.0.sql +++ b/hzims-service/message/src/main/resources/db/1.0.0.sql @@ -1,71 +1,114 @@ --- 创建消息模板表结构 -CREATE TABLE IF NOT EXISTS `hzims_message_template` ( - `ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '消息类型', - `TYPE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主键ID', - `BUSINESS_KEY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务关键字', - `BUSINESS_CLASSIFY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务分类', - `SUBJECT` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主题', - `CONCENTRATED_DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '集中推送时长', - `CONCENTRATED_TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集中推送单位', - `ADVANCE_DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '提前推送时长', - `ADVANCE_TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '提前推送单位', - `TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', - `CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建单位', - `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', - `CREATE_TIME` datetime NOT NULL COMMENT '创建时间', - `UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', - `UPDATE_TIME` datetime NULL DEFAULT NULL COMMENT '修改时间', - `STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '业务状态', - `IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除 0-正常 1-删除', - PRIMARY KEY (`ID`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 1643920980174729219 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '消息推送模板' ROW_FORMAT = DYNAMIC; -SET FOREIGN_KEY_CHECKS = 1; - --- 创建消息记录表结构 -CREATE TABLE IF NOT EXISTS `hzims_message_push_record` ( - `ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', - `TASK_ID` bigint(20) NOT NULL COMMENT '消息类型', - `TEMPLATE_ID` bigint(20) COMMENT '消息模板ID', - `PUSHER` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '推送人', - `PUSHER_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '推送人名称', - `CONTENT` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '内容', - `PLAN_TIME` datetime NULL DEFAULT NULL COMMENT '计划推送时间', - `PUSH_TIME` datetime NULL DEFAULT NULL COMMENT '实际推送时间', - `TYPE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '消息类型', - `BUSINESS_KEY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务关键字', - `BUSINESS_CLASSIFY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务分类。系统通知:system,事务消息:business,日常提醒:dailyRemind,巡检消息:inspect', - `SUBJECT` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主题', - `CONCENTRATED_DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '集中推送时长', - `CONCENTRATED_TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集中推送单位', - `ADVANCE_DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '提前推送时长', - `ADVANCE_TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '提前推送单位', - `TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', - `CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建单位', - `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人', - `CREATE_TIME` datetime NOT NULL COMMENT '创建时间', - `UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人', - `UPDATE_TIME` datetime NULL DEFAULT NULL COMMENT '修改时间', - `STATUS` tinyint(4) NULL DEFAULT 0 COMMENT '业务状态(0 未推送,1 推送成功,2 推送失败,3 已确认)', - `IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除 0-正常 1-删除', - `RESPOND_TIME` datetime NULL DEFAULT NULL COMMENT '响应时间', - `RESPOND_REMARK` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '响应说明', - `RESOURCE_CODE` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '资源编码', - `ACCOUNT` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '推送账号:手机号,邮箱', - `STATION_CODE` varchar(50) 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 '站点名称', - PRIMARY KEY (`ID`) USING BTREE -) ENGINE = InnoDB AUTO_INCREMENT = 1645716467911520258 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '消息推送记录' ROW_FORMAT = DYNAMIC; - -SET FOREIGN_KEY_CHECKS = 1; - --- 站点编码字段 -> 机构ID -alter table hzims_message_push_record change `STATION_CODE` `DEPT_ID` bigint(20) DEFAULT NULL comment '机构ID'; --- 站点名称字段 -> 机构名称 -alter table hzims_message_push_record change `STATION_NAME` `DEPT_NAME` VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL comment '机构ID'; - --- 消息推送类型字典 -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1645998325178130433, 0, 'pushType', '-1', '推送类型', 6, '', 0, 0, 0, -1, 'message'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1645998429171703809, 1645998325178130433, 'pushType', '0', '即时推送', 1, '', 0, 0, 0, -1, 'message'); -INSERT INTO `bladex`.`blade_dict` (`id`, `parent_id`, `code`, `dict_key`, `dict_value`, `sort`, `remark`, `is_sealed`, `is_deleted`, `dict_type`, `app_id`, `app_code`) VALUES (1645998773519867906, 1645998325178130433, 'pushType', '1', '计划推送', 2, '', 0, 0, 0, -1, 'message'); +SET FOREIGN_KEY_CHECKS=0; +ALTER TABLE `dev_hzims_message`.`hzims_app_log` MODIFY COLUMN `TYPE` tinyint(4) NULL DEFAULT NULL COMMENT '消息类型' AFTER `BUSINESS_CLASSIFY`; +ALTER TABLE `dev_hzims_message`.`hzims_mail_config` ADD COLUMN `DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '多长时间内的推送' AFTER `IS_DELETED`; + +ALTER TABLE `dev_hzims_message`.`hzims_mail_config` ADD COLUMN `TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '时间单位' AFTER `DURATION`; + +CREATE TABLE `dev_hzims_message`.`hzims_message_push_record` ( + `ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `TASK_ID` bigint(20) NOT NULL COMMENT '消息类型', + `TEMPLATE_ID` bigint(20) NULL DEFAULT NULL COMMENT '消息模板ID', + `PUSHER` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '推送人', + `PUSHER_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '推送人名称', + `CONTENT` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '内容', + `PLAN_TIME` datetime(0) NULL DEFAULT NULL COMMENT '计划推送时间', + `PUSH_TIME` datetime(0) NULL DEFAULT NULL COMMENT '实际推送时间', + `TYPE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '消息类型', + `BUSINESS_KEY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务关键字', + `BUSINESS_CLASSIFY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务分类。系统通知:system,事务消息:business,日常提醒:dailyRemind,巡检消息:inspect', + `SUBJECT` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主题', + `CONCENTRATED_DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '集中推送时长', + `CONCENTRATED_TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集中推送单位', + `ADVANCE_DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '提前推送时长', + `ADVANCE_TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '提前推送单位', + `TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', + `CREATE_DEPT` bigint(20) 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 '修改时间', + `STATUS` tinyint(4) NULL DEFAULT 0 COMMENT '业务状态(0 未推送,1 推送成功,2 推送失败,3 已确认)', + `IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除 0-正常 1-删除', + `RESPOND_TIME` datetime(0) NULL DEFAULT NULL COMMENT '响应时间', + `RESPOND_REMARK` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '响应说明', + `RESOURCE_CODE` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '资源编码', + `ACCOUNT` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '推送账号:手机号,邮箱', + `DEPT_ID` bigint(20) NULL DEFAULT NULL COMMENT '机构ID', + `DEPT_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '机构ID', + `MESSAGE_ID` bigint(20) NULL DEFAULT NULL COMMENT '消息ID', + `PUSH_TYPE` varchar(2) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '推送类型,0:即时推送,1:计划推送', + `SMS_PARAM` 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 COMMENT = '消息推送记录' ROW_FORMAT = Dynamic; + +CREATE TABLE `dev_hzims_message`.`hzims_message_template` ( + `ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '消息类型', + `TYPE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主键ID', + `BUSINESS_KEY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务关键字', + `BUSINESS_CLASSIFY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务分类。系统通知:system,事务消息:business,日常提醒:dailyRemind,巡检消息:inspect', + `SUBJECT` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '主题', + `CONCENTRATED_DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '集中推送时长', + `CONCENTRATED_TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '集中推送单位', + `ADVANCE_DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '提前推送时长', + `ADVANCE_TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '提前推送单位', + `TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', + `CREATE_DEPT` bigint(20) 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 '修改时间', + `STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '业务状态', + `IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除 0-正常 1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '消息推送模板' ROW_FORMAT = Dynamic; + +ALTER TABLE `dev_hzims_message`.`hzims_push_config` MODIFY COLUMN `TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '时间单位' AFTER `DURATION`; + +CREATE TABLE `dev_hzims_message`.`hzims_push_message` ( + `ID` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '主键ID', + `MESSAGE_TYPE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '消息类型', + `BUSINESS_KEY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '业务key值', + `MESSAGE_CONTENT` varchar(2000) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '消息推送内容体', + `IS_PUSH` tinyint(4) NULL DEFAULT 0 COMMENT '是否推送', + `IS_SUCCESS` tinyint(4) NULL DEFAULT NULL COMMENT '是否推送', + `PUSH_TIME` datetime(0) NULL DEFAULT NULL COMMENT '推送时间', + `TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '租户ID', + `CREATE_DEPT` bigint(20) 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 '修改时间', + `STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '业务状态', + `IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除 0-正常 1-删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; + +ALTER TABLE `dev_hzims_message`.`hzims_sms_config` MODIFY COLUMN `CONTENT_VARIABLES` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '短信模板参数变量定义' AFTER `IS_DELETED`; + +ALTER TABLE `dev_hzims_message`.`hzims_sms_config` MODIFY COLUMN `TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '时间单位' AFTER `DURATION`; + +ALTER TABLE `dev_hzims_message`.`hzims_ws_config` ADD COLUMN `DURATION` mediumint(9) NULL DEFAULT NULL COMMENT '多长时间内的推送' AFTER `IS_DELETED`; + +ALTER TABLE `dev_hzims_message`.`hzims_ws_config` ADD COLUMN `TIME_UNIT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '时间单位' AFTER `DURATION`; + +DROP TABLE `dev_hzims_message`.`hz_msg_push_record`; + +DROP TABLE `dev_hzims_message`.`hz_msg_push_record_copy1`; + +DROP TABLE `dev_hzims_message`.`hz_msg_sms_record`; + +DROP TABLE `dev_hzims_message`.`hz_msg_sms_record_copy1`; + +DROP TABLE `dev_hzims_message`.`hz_msg_ws_record`; + +DROP TABLE `dev_hzims_message`.`hz_msg_ws_record_copy1`; + +DROP TABLE `dev_hzims_message`.`hz_msg_ws_record_history`; + +DROP TABLE `dev_hzims_message`.`hz_msg_ws_record_history_copy1`; + +DROP TABLE `dev_hzims_message`.`hzims_msg_mail_record`; + +SET FOREIGN_KEY_CHECKS=1; \ No newline at end of file diff --git a/hzims-service/message/src/main/resources/db/1.0.1.sql b/hzims-service/message/src/main/resources/db/1.0.1.sql deleted file mode 100644 index 39833ff..0000000 --- a/hzims-service/message/src/main/resources/db/1.0.1.sql +++ /dev/null @@ -1,6 +0,0 @@ --- 添加消息ID -alter table hzims_message_push_record add COLUMN `MESSAGE_ID` bigint(20) DEFAULT NULL comment '消息ID'; --- 添加消息推送类型 -alter table hzims_message_push_record add COLUMN `PUSH_TYPE` VARCHAR(2) DEFAULT NULL comment '推送类型,0:即时推送,1:计划推送'; --- 添加短信推送参数 -alter table `hzims_message_push_record` add COLUMN `SMS_PARAM` VARCHAR(255) COMMENT '阿里云短信模板参数'; diff --git a/hzims-service/operational/src/main/resources/db/1.0.0.sql b/hzims-service/operational/src/main/resources/db/1.0.0.sql index 0d93017..ae33b30 100644 --- a/hzims-service/operational/src/main/resources/db/1.0.0.sql +++ b/hzims-service/operational/src/main/resources/db/1.0.0.sql @@ -1,2 +1,947 @@ --- 站点管理添加站点标识字段 -alter table HZIMS_STATION ADD COLUMN SIGNAGE VARCHAR(20) COMMENT '站点标识-两票编码'; \ No newline at end of file +SET FOREIGN_KEY_CHECKS=0; + +ALTER TABLE `dev_hzims_operation`.`hy_st_alarm_record` MODIFY COLUMN `PROCESS_TIME` datetime(0) NULL DEFAULT NULL COMMENT '处理时间' AFTER `PROCESSOR`; + +ALTER TABLE `dev_hzims_operation`.`hy_st_alarm_record` MODIFY COLUMN `CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间' AFTER `TENANT_ID`; + +ALTER TABLE `dev_hzims_operation`.`hy_st_alarm_record` MODIFY COLUMN `UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '更新时间' AFTER `CREATE_TIME`; + +CREATE TABLE `dev_hzims_operation`.`hz_ims_duty_analyse_example` ( + `ID` bigint(20) NOT NULL, + `SITE_ID` bigint(22) NULL DEFAULT NULL COMMENT '站点ID', + `SITE_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称', + `EQUIPMENT_ID` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备ID', + `EQUIPMENT_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备名称', + `DEVICE_CODE` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '分析实例ID', + `ANALYSE_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '分析实例名称', + `PROPERTY_IDS` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '属性ID以^隔开', + `TENANT_ID` int(11) NULL DEFAULT NULL COMMENT '租户ID', + `STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态(0 待值班 1 值班中 2 已完成)', + `CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间', + `UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', + `CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', + `IS_DELETED` tinyint(4) NULL DEFAULT 0 COMMENT '是否删除', + `CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门ID', + PRIMARY KEY (`ID`) USING BTREE, + INDEX `CLASS_ID_INDEX`(`SITE_ID`) USING BTREE, + INDEX `EQUIPMENT_ID_INDEX`(`EQUIPMENT_ID`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `dev_hzims_operation`.`hz_ims_duty_emergency` ( + `ID` bigint(20) NOT NULL COMMENT '突发事件登记表', + `DUTY_TIME` datetime(0) NOT NULL COMMENT '值班日期', + `DUTY_CLASS` bigint(20) NOT NULL COMMENT '班次', + `REGISTRANT` bigint(20) NOT NULL COMMENT '登记人', + `CHARGE_PERSON` bigint(20) NULL DEFAULT NULL COMMENT '值班长', + `REGISTER_TIME` datetime(0) NULL DEFAULT NULL COMMENT '登记时间', + `EVENT_TITLE` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '事件主题', + `EVENT_INFO` longtext CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '事件内容', + `EVENT_TYPE` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '事件方式', + `STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态(1 未提交,2流程审核中,3已完成。)', + `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 DEFAULT 0 COMMENT '是否删除', + `CREATE_DEPT` bigint(20) UNSIGNED NULL DEFAULT NULL, + `TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; + +ALTER TABLE `dev_hzims_operation`.`hz_ims_duty_main` MODIFY COLUMN `DUTY_PERSON_IDS` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '值班人IDS, ID之间用^隔开' AFTER `CLASS_ID`; + +ALTER TABLE `dev_hzims_operation`.`hz_ims_duty_main` MODIFY COLUMN `TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID' AFTER `REMARK`; + +CREATE TABLE `dev_hzims_operation`.`hz_ims_duty_main_person` ( + `ID` bigint(20) NOT NULL COMMENT '主键ID(排班计划-人员表)', + `DUTY_MAIN_ID` bigint(20) NULL DEFAULT NULL COMMENT '值班-班组表ID', + `DUTY_GROUP_ID` bigint(20) NULL DEFAULT NULL COMMENT '值班组id(灵活排版无ID)', + `DUTY_GROUP_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '值班班组名称', + `DUTY_DATE` date NOT NULL COMMENT '值班日期', + `CLASS_ID` bigint(20) NOT NULL COMMENT '班次ID', + `DUTY_PERSON` bigint(20) NULL DEFAULT NULL COMMENT '值班人ID(一个值班人对应一条)', + `DUTY_CHARGE_PERSON` bigint(20) NULL DEFAULT NULL COMMENT '值班负责人', + `STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态(0 待值班 1 值班中 2 已完成)', + `REMARK` text CHARACTER SET utf8 COLLATE utf8_general_ci NULL COMMENT '备注', + `TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', + `CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '创建时间', + `UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '更新时间', + `CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人', + `UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '更新人', + `IS_DELETED` tinyint(4) NULL DEFAULT 0 COMMENT '是否删除', + `CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门ID', + PRIMARY KEY (`ID`) USING BTREE, + INDEX `index_person`(`DUTY_PERSON`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; + +ALTER TABLE `dev_hzims_operation`.`hz_ims_duty_main_template` ADD COLUMN `TYPE` tinyint(4) NOT NULL DEFAULT 1 COMMENT '1 班组,2灵活排班' AFTER `TEMPLATE_NAME`; + +ALTER TABLE `dev_hzims_operation`.`hz_ims_duty_main_template` ADD COLUMN `FLEXIBLE` varchar(5000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '灵活排班人员ID' AFTER `DUTY_ARR_IDS`; + +ALTER TABLE `dev_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 `dev_hzims_operation`.`hz_ims_duty_rec` MODIFY COLUMN `STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态(1 未提交,2流程审核中,3已完成。)' AFTER `DELAY_STATUS`; + +ALTER TABLE `dev_hzims_operation`.`hzims_alarm_handle` ADD COLUMN `ALARM_ID` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警主键ID' AFTER `ID`; + +ALTER TABLE `dev_hzims_operation`.`hzims_alarm_handle` ADD COLUMN `TYPE` tinyint(1) NULL DEFAULT NULL COMMENT '类型:0-系统告警 1-智能告警' AFTER `ALARM_CONTENT`; + +ALTER TABLE `dev_hzims_operation`.`hzims_alarm_handle_detail` ADD COLUMN `HANDLE_USER` bigint(20) NULL DEFAULT NULL COMMENT '通知处理人' AFTER `ID`; + +ALTER TABLE `dev_hzims_operation`.`hzims_app_version` MODIFY COLUMN `CREATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间' AFTER `IS_DELETED`; + +CREATE TABLE `dev_hzims_operation`.`hzims_fill_generate` ( + `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 '站点名称', + `DATA_ORIGIN` varchar(4) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点数据类型: 0 - 接入站点 1 - 未接入站点', + `FILL_DATE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '填报日期', + `GENERATE` 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) NULL DEFAULT NULL COMMENT '状态 0-启用 1-停用', + `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 `dev_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 `dev_hzims_operation`.`hzims_fill_over_config` MODIFY COLUMN `SORT` tinyint(4) NOT NULL COMMENT '排序' AFTER `UNIT_PRICE`; + +ALTER TABLE `dev_hzims_operation`.`hzims_fill_over_config` ADD UNIQUE INDEX `OVER_NAME`(`OVER_NAME`) USING BTREE; + +ALTER TABLE `dev_hzims_operation`.`hzims_fill_power` MODIFY COLUMN `POWER_MON` double(20, 2) NULL DEFAULT 0.00 COMMENT '月发电量' AFTER `PLANNED_POWER_MON`; + +CREATE TABLE `dev_hzims_operation`.`hzims_fill_rainfall` ( + `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 '站点名称', + `RAIN` decimal(15, 2) NULL DEFAULT NULL COMMENT '降雨量', + `FILL_DATE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci 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) NULL DEFAULT NULL COMMENT '状态 0-启用 1-停用', + `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 `dev_hzims_operation`.`hzims_fill_storage` ( + `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 '站点名称', + `POWER` decimal(15, 2) NULL DEFAULT NULL COMMENT '发电量', + `FILL_DATE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci 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) NULL DEFAULT NULL COMMENT '状态 0-启用 1-停用', + `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 `dev_hzims_operation`.`hzims_fill_use` ( + `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 '站点名称', + `DATA_ORIGIN` varchar(4) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点数据类型: 0 - 接入站点 1 - 未接入站点', + `FILL_DATE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '填报日期', + `EMPLOY` 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) NULL DEFAULT NULL COMMENT '状态 0-启用 1-停用', + `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 `dev_hzims_operation`.`hzims_history_abnormal_alarm` ADD COLUMN `ALARM_ID` bigint(20) NULL DEFAULT NULL COMMENT '告警编号' AFTER `STATION_NAME`; + +ALTER TABLE `dev_hzims_operation`.`hzims_history_abnormal_alarm` ADD COLUMN `TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID' AFTER `SOE_EXPLAIN`; + +ALTER TABLE `dev_hzims_operation`.`hzims_history_abnormal_alarm` ADD COLUMN `CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建单位' AFTER `STATUS`; + +ALTER TABLE `dev_hzims_operation`.`hzims_history_abnormal_alarm` ADD COLUMN `CREATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '创建人' AFTER `CREATE_DEPT`; + +ALTER TABLE `dev_hzims_operation`.`hzims_history_abnormal_alarm` ADD COLUMN `UPDATE_USER` bigint(20) NULL DEFAULT NULL COMMENT '修改人' AFTER `CREATE_TIME`; + +ALTER TABLE `dev_hzims_operation`.`hzims_history_abnormal_alarm` MODIFY COLUMN `SOE_EXPLAIN` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警原因' AFTER `TYPE`; + +ALTER TABLE `dev_hzims_operation`.`hzims_history_abnormal_alarm` MODIFY COLUMN `STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '业务状态' AFTER `TENANT_ID`; + +ALTER TABLE `dev_hzims_operation`.`hzims_history_abnormal_alarm` MODIFY COLUMN `UPDATE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '修改时间' AFTER `UPDATE_USER`; + +ALTER TABLE `dev_hzims_operation`.`hzims_history_abnormal_alarm` MODIFY COLUMN `IS_DELETED` tinyint(4) NOT NULL DEFAULT 0 COMMENT '是否删除' AFTER `UPDATE_TIME`; + +CREATE TABLE `dev_hzims_operation`.`hzims_history_level_alarm` ( + `ID` bigint(20) NOT NULL COMMENT '主键ID', + `STATION_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点ID', + `STATION_NAME` varchar(168) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称', + `DEVICE_CODE` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备编码', + `DEVICE_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '设备名称', + `ALARM_LEVEL` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警等级', + `ALARM_ID` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警编号', + `REAL_ID` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警点位', + `ALARM_TIME` datetime(0) NULL DEFAULT NULL COMMENT '告警开始时间', + `TYPE` varchar(16) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警类型 13-连接中断 14-数据异常', + `SOE_EXPLAIN` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '告警标题', + `TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', + `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) NOT NULL DEFAULT 0 COMMENT '是否删除', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; + +ALTER TABLE `dev_hzims_operation`.`hzims_main_work_bench` MODIFY COLUMN `ORD` int(11) NULL DEFAULT NULL COMMENT '排序' AFTER `ENABLE_FLAG`; + +ALTER TABLE `dev_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 `dev_hzims_operation`.`hzims_month_report` MODIFY COLUMN `OBJECT` blob NULL COMMENT '报表保存对象' AFTER `TYPE`; + +ALTER TABLE `dev_hzims_operation`.`hzims_oper_access_plan` MODIFY COLUMN `PHENOMENON_ID` bigint(20) NULL DEFAULT NULL COMMENT '现象ID' AFTER `DESCRIPITON`; + +ALTER TABLE `dev_hzims_operation`.`hzims_oper_access_task` ADD COLUMN `MESSAGE_TEMPLATE_ID` bigint(20) NULL DEFAULT NULL COMMENT '模板id' AFTER `phenomenon_id`; + +ALTER TABLE `dev_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 `dev_hzims_operation`.`hzims_oper_access_task` MODIFY COLUMN `ticket_id` bigint(20) NULL DEFAULT NULL AFTER `UPDATE_TIME`; + +ALTER TABLE `dev_hzims_operation`.`hzims_oper_access_task` MODIFY COLUMN `delay_date` datetime(0) NULL DEFAULT NULL AFTER `ticket_id`; + +ALTER TABLE `dev_hzims_operation`.`hzims_oper_access_task` MODIFY COLUMN `DELAY_STATUS` tinyint(4) NULL DEFAULT NULL AFTER `delay_date`; + +ALTER TABLE `dev_hzims_operation`.`hzims_oper_fault` MODIFY COLUMN `FAULT_TYPE` tinyint(4) NULL DEFAULT NULL COMMENT '0- 标准;1 - 非标准' AFTER `FAULT_NAME`; + +ALTER TABLE `dev_hzims_operation`.`hzims_oper_maintenance_library` ADD COLUMN `MESSAGE_TEMPLATE_ID` bigint(20) NULL DEFAULT NULL COMMENT '消息推送模板ID' AFTER `UPDATE_TIME`; + +ALTER TABLE `dev_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 `dev_hzims_operation`.`hzims_oper_maintenance_plan` ADD COLUMN `MESSAGE_TEMPLATE_ID` bigint(20) NULL DEFAULT NULL COMMENT '消息推送模板ID' AFTER `TASK_TYPE`; + +ALTER TABLE `dev_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 `dev_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 `dev_hzims_operation`.`hzims_oper_maintenance_task` ADD COLUMN `MESSAGE_TEMPLATE_ID` bigint(20) NULL DEFAULT NULL COMMENT '消息推送模板ID' AFTER `plan_id`; + +ALTER TABLE `dev_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 `dev_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 `dev_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 `dev_hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `DISPOSE_TIME` datetime(0) NOT NULL COMMENT '任务按周期生成计划开始时间' AFTER `DISPOSER`; + +ALTER TABLE `dev_hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `EXECUTE_TIME` datetime(0) NULL DEFAULT NULL COMMENT '任务执行日期' AFTER `DISPOSE_TIME`; + +ALTER TABLE `dev_hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `PUSH_MSG_STATUS` tinyint(4) NULL DEFAULT 0 COMMENT '消息推送状态 0=未推送 1=已推送' AFTER `DESCRIPTION`; + +ALTER TABLE `dev_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 `dev_hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `DELAY_STATUS` tinyint(4) NULL DEFAULT NULL AFTER `TASK_TYPE`; + +ALTER TABLE `dev_hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `DELAY_DATE` datetime(0) NULL DEFAULT NULL AFTER `DELAY_STATUS`; + +ALTER TABLE `dev_hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `TICKET_ID` bigint(20) NULL DEFAULT NULL AFTER `DELAY_DATE`; + +ALTER TABLE `dev_hzims_operation`.`hzims_oper_maintenance_task` MODIFY COLUMN `PLAN_END_TIME` datetime(0) NULL DEFAULT NULL AFTER `TICKET_ID`; + +ALTER TABLE `dev_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 `dev_hzims_operation`.`hzims_oper_phenomenon` MODIFY COLUMN `HANDLE_TASK_ID` bigint(20) NULL DEFAULT NULL COMMENT '处理任务ID' AFTER `HANDLE_TYPE`; + +ALTER TABLE `dev_hzims_operation`.`hzims_oper_phenomenon` MODIFY COLUMN `HANDLER` bigint(20) NULL DEFAULT NULL COMMENT '处理人,处理工作流的第一个处理人' AFTER `HANDLE_TASK_ID`; + +ALTER TABLE `dev_hzims_operation`.`hzims_oper_phenomenon` MODIFY COLUMN `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人' AFTER `UPDATE_TIME`; + +CREATE TABLE `dev_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 `dev_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 `dev_hzims_operation`.`hzims_station` ADD COLUMN `SEND_MESSAGE_FLAG` tinyint(4) NULL DEFAULT NULL COMMENT '0-不推送告警短信 1-推送告警短信' AFTER `CONTACTOR`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station` ADD COLUMN `DATA_ORIGIN` varchar(4) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数据来源: 0 - 数据采集 1 - 数据填报' AFTER `HIGHER_DEPT`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station` ADD COLUMN `DATA_SOURCE` varchar(4) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数据采集方式' AFTER `DATA_ORIGIN`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station` ADD COLUMN `SECRET_KEY` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '实时画面绑定账号秘钥' AFTER `DATA_SOURCE`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station` ADD COLUMN `SIGNAGE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点标识-两票编码' AFTER `SECRET_KEY`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station` MODIFY COLUMN `REF_DOMAIN` smallint(6) NULL DEFAULT 1 COMMENT '所属行业(来源于字典表如水电)' AFTER `ID`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station` MODIFY COLUMN `SERVE_TYPE` varchar(4) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点服务类型:1、云服务; 2、运维服务' AFTER `NAME`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station` MODIFY COLUMN `WATER_LEVEL_MAX` decimal(6, 2) NULL COMMENT '前池最高水位' AFTER `TYPE`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station` MODIFY COLUMN `LIMIT_WATER_LEVEL` decimal(6, 2) NULL COMMENT '限制水位' AFTER `WATER_LEVEL_MAX`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station` ADD UNIQUE INDEX `hzims_station_pk`(`SIGNAGE`) USING BTREE; + +ALTER TABLE `dev_hzims_operation`.`hzims_station_attribute` ADD COLUMN `SIGNAGE` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '加物模型属性标识' AFTER `monitor_station_code`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station_attribute` ADD COLUMN `SIGNAGE_NAME` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '加物模型属性标识名称' AFTER `SIGNAGE`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station_attribute` MODIFY COLUMN `GROUP_ID` tinyint(4) NULL DEFAULT NULL COMMENT '属性分组ID' AFTER `EM_NAME`; + +CREATE TABLE `dev_hzims_operation`.`hzims_station_bak1115` ( + `ID` bigint(20) NOT NULL COMMENT '主键', + `REF_DOMAIN` smallint(6) NULL DEFAULT NULL COMMENT '所属行业(来源于字典表如水电)', + `REF_BASIN` smallint(6) NULL DEFAULT NULL COMMENT '所属流域(来源于字典表如长江流域)', + `REF_AREA` smallint(6) NULL DEFAULT NULL COMMENT '所属区域(来源于字典表如华北区)', + `AREA_CODE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '行政区划(来源于平台的行政区划表)', + `REF_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '所属机构', + `CODE` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '编号(原站点ID)', + `NAME` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '名称', + `SERVE_TYPE` bigint(4) NULL DEFAULT 1 COMMENT '站点服务类型:1、云服务; 2、运维服务', + `COMMISSION_TIME` datetime(0) NULL DEFAULT NULL COMMENT '投运时间,用于计算安全运行天数', + `PIC` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点图片,用于展示', + `TYPE` smallint(6) NULL DEFAULT NULL COMMENT '类型(1电站2泵站3水厂)', + `LGTD` decimal(13, 10) NULL DEFAULT NULL COMMENT '经度(东经)', + `LTTD` decimal(12, 10) NULL DEFAULT NULL COMMENT '纬度(北纬)', + `ENABLE_CONTROL` tinyint(4) NULL DEFAULT NULL COMMENT '允许监控,1时为允许,其它为不允许', + `REMARK` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '备注', + `CONTACT` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系方式', + `ADDRESS` varchar(1000) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '详细地址', + `COMPANY` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '公司名字', + `CONTACTOR` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci 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) 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 COMMENT = '站点表' ROW_FORMAT = Dynamic; + +ALTER TABLE `dev_hzims_operation`.`hzims_station_user` COMMENT = '站点-用户关系绑定表'; + +ALTER TABLE `dev_hzims_operation`.`hzims_station_user` MODIFY COLUMN `ID` bigint(20) NOT NULL COMMENT '主键' FIRST; + +ALTER TABLE `dev_hzims_operation`.`hzims_station_user` MODIFY COLUMN `STATION_ID` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '站点编码' AFTER `ID`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station_user` MODIFY COLUMN `USER_ID` varchar(200) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '用户ID' AFTER `STATION_ID`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station_user` MODIFY COLUMN `CREATE_TIME` datetime(0) NOT NULL COMMENT '创建时间' AFTER `TENANT_ID`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station_user` MODIFY COLUMN `CREATE_USER` bigint(20) NOT NULL COMMENT '创建人' AFTER `UPDATE_TIME`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station_user` MODIFY COLUMN `STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态 ' AFTER `IS_DELETED`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station_video_type` ADD COLUMN `STATION_NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点名称' AFTER `video_type`; + +ALTER TABLE `dev_hzims_operation`.`hzims_station_video_type` MODIFY COLUMN `video_type` tinyint(4) NULL DEFAULT NULL COMMENT '视频类型;默认为1:清污机类型' AFTER `SORT`; + +CREATE TABLE `dev_hzims_operation`.`hzims_station_video_type_bak0302` ( + `ID` bigint(20) NOT NULL COMMENT '主键ID', + `NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '视频源名称', + `STATION_ID` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点ID', + `DEPT_ID` bigint(20) NULL DEFAULT NULL COMMENT '机构ID', + `IS_HIKVIDEO` tinyint(4) NULL DEFAULT NULL COMMENT '是否平台接入 1=是 0=否(关联hznet.hznet`.`sys_station_video_set;isc为平台接入)', + `ADDRESS` varchar(255) 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 '类型', + `LIVE_SOURCE_ADDRESS` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数据源地址', + `POINT_CODE` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci 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) NULL DEFAULT NULL COMMENT '状态 ', + `CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', + `VIDEO_HOST` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '代理API网关nginx服务器ip端口', + `APP_KEY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '秘钥appkey', + `APP_SECRET` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '秘钥appSecret', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; + +CREATE TABLE `dev_hzims_operation`.`hzims_station_video_type_copy1` ( + `ID` bigint(20) NOT NULL COMMENT '主键ID', + `NAME` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '视频源名称', + `STATION_ID` varchar(50) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点ID', + `DEPT_ID` bigint(20) NULL DEFAULT NULL COMMENT '机构ID', + `IS_HIKVIDEO` tinyint(4) NULL DEFAULT NULL COMMENT '是否平台接入 1=是 0=否(关联hznet.hznet`.`sys_station_video_set;isc为平台接入)', + `ADDRESS` varchar(255) 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 '类型', + `LIVE_SOURCE_ADDRESS` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '数据源地址', + `POINT_CODE` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci 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) NULL DEFAULT NULL COMMENT '状态 ', + `CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', + `VIDEO_HOST` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '代理API网关nginx服务器ip端口', + `APP_KEY` varchar(100) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '秘钥appkey', + `APP_SECRET` varchar(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '秘钥appSecret', + `SORT` smallint(6) NULL DEFAULT 999 COMMENT '排序', + `video_type` tinyint(4) NULL DEFAULT NULL COMMENT '视频类型;默认为1:清污机类型', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci ROW_FORMAT = Dynamic; + +ALTER TABLE `dev_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 `dev_hzims_operation`.`hzims_user_feedback` ( + `ID` bigint(20) NOT NULL COMMENT '主键', + `TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', + `PHONE` varchar(20) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '联系电话', + `CONTENT` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '反馈内容', + `FILE_NAME` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件名称', + `FILE_URL` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '附件地址', + `REPLY_CONTENT` varchar(500) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '回复内容', + `REPLY_USER` bigint(20) NULL DEFAULT NULL COMMENT '回复人', + `STATUS` tinyint(4) NULL DEFAULT NULL COMMENT '状态 ', + `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 '是否删除', + `CREATE_DEPT` bigint(20) NULL DEFAULT NULL COMMENT '创建部门', + PRIMARY KEY (`ID`) USING BTREE +) ENGINE = InnoDB CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '用户反馈表' ROW_FORMAT = Dynamic; + +CREATE TABLE `dev_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 `dev_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 `dev_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 `dev_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 `dev_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 `dev_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 `dev_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 `dev_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 `dev_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 `dev_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 `dev_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 `dev_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 `dev_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 `dev_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 `dev_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 `dev_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 `dev_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 `dev_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 `dev_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; + +CREATE DEFINER = `root`@`%` PROCEDURE `dev_hzims_operation`.`getDataByDbName`(in dbName varchar(100),in tbName VARCHAR(255),IN ziduan VARCHAR(255)) +BEGIN + DECLARE num INT DEFAULT 0; + DECLARE str VARCHAR(50); + -- 定义循环条件 + DECLARE flag INT DEFAULT 0; + -- SET @selectSql =CONCAT('SELECT COUNT(1) from sys_station where stationpic like ''%12345%'' ;'); + -- SET @STMT =CONCAT('SELECT COUNT(1) FROM ',tbName,'where ',ziduan,' LIKE ''%12345%'' INTO @num;'); + -- 声明游标,取机构id + DECLARE cur CURSOR FOR select distinct id from dev_bladex.blade_dept where is_deleted=0; +-- 退出循环 +DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET flag = 1; +delete from temp where db_name = dbName and tablename = tbName and LieName = ziduan; +OPEN cur; +outer_label: BEGIN #设置一个标记 + WHILE flag <> 1 DO + FETCH cur INTO str; + SET @selectSql =CONCAT('SELECT COUNT(1) FROM ',dbName,'.`',tbName,'` where ',ziduan,' LIKE ''%',str,'%'' INTO @num;'); + -- SET @selectSql =CONCAT('SELECT COUNT(1) FROM sys_station',' WHERE stationpic ',' LIKE ''%12345%'' INTO @num;'); +PREPARE stmt FROM @selectSql; +EXECUTE stmt; +IF @num>0 THEN + -- insert into temp_sql values (dbName,@selectSql); + INSERT INTO temp VALUES (dbName,tbName,ziduan); + LEAVE outer_label; #满足条件,终止循环,跳转到end outer_label标记 +END IF; +END WHILE; +END outer_label; +CLOSE cur; +END; + +CREATE DEFINER = `root`@`%` PROCEDURE `dev_hzims_operation`.`pDeptSync`() +BEGIN +DECLARE done BOOLEAN DEFAULT 0; +DECLARE syncId BIGINT; +DECLARE oldDeptId BIGINT; +DECLARE newDeptId BIGINT; +DECLARE sync_cursor CURSOR FOR +SELECT id,old_dept_id,new_dept_id FROM temp_dept_sync WHERE is_sync <> 1 order by create_time desc; +DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' set done = 1; +OPEN sync_cursor; +repeat +FETCH sync_cursor INTO syncId,oldDeptId,newDeptId; +-- 执行业务数据迁移 +call pSyncProcess(syncId,oldDeptId,newDeptId); +-- 更新同步状态 +update blade_dept_sync set is_sync = 1,execute_time = NOW() where id = syncId; +-- 迁移站点ID +update dev_bladex.blade_dept set station_id = (select station_id from dev_bladex.blade_dept where id = oldDeptId) where id = newDeptId; +-- 删除原始机构ID +update dev_bladex.blade_dept set is_deleted = 1 where id = oldDeptId; +UNTIL done END repeat; +CLOSE sync_cursor; +end; + +CREATE DEFINER = `root`@`%` PROCEDURE `dev_hzims_operation`.`processquanjusou`(in dbName VARCHAR(255)) +BEGIN +DECLARE done BOOLEAN DEFAULT 0; +DECLARE biao VARCHAR (255); +DECLARE ziduan VARCHAR (255); +DECLARE indexss CURSOR +FOR +SELECT TABLE_NAME,COLUMN_NAME FROM information_schema.COLUMNS WHERE TABLE_SCHEMA=dbName + and length(table_name) = char_length(table_name) and column_name <>'constraint' + and TABLE_NAME not like '%blade_log%' and TABLE_NAME not like '%copy%' and TABLE_NAME not like '%bak%' and TABLE_NAME not like '%temp%' + and COLUMN_NAME != 'REQ_BODY'; +DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET done=1; +OPEN indexss; +repeat +FETCH indexss INTO biao,ziduan; +call getDataByDbName(dbName,biao,ziduan); +UNTIL done END repeat; +CLOSE indexss; +end; + +CREATE DEFINER = `root`@`%` PROCEDURE `dev_hzims_operation`.`pSyncProcess`(in syncId BIGINT,in beReplaced BIGINT,in replaced BIGINT) + COMMENT '执行此方法前需检查所有数据库的dept column 是否已存入temp表中 若有遗漏需调用processquanjusou补全column' +BEGIN + DECLARE db_name_var VARCHAR(255); + DECLARE table_name VARCHAR(255); + DECLARE lie_name VARCHAR(255); + DECLARE original VARCHAR(255); + -- 定义循环条件 + DECLARE flag INT DEFAULT 0; + -- 声明游标,取机构id + DECLARE cur CURSOR FOR select `db_name`,`tablename`,`lieName` from dev_bladex.temp where tablename not like '%log%' and tablename not like '%copy%' and tablename not like '%bak%' and tablename not like 'v_%' and tablename not like '%temp%' and tablename <> 'blade_dept'; +-- 退出循环 +DECLARE CONTINUE HANDLER FOR SQLSTATE '02000' SET flag = 1; + -- delete from dev_bladex.temp_replace_info; +OPEN cur; +WHILE flag <> 1 DO + FETCH cur INTO db_name_var,table_name,lie_name; + -- 保存变换参数 + SET @updateSql = concat('update ',db_name_var,'.`',table_name,'` set ',lie_name,' = replace(',lie_name,',',beReplaced,',',replaced,') where ',lie_name,' like ''%',beReplaced,'%'''); + SET @bakUpdateSql = concat('update ',db_name_var,'.`',table_name,'` set ',lie_name,' = replace(',lie_name,',',replaced,',',beReplaced,') where ',lie_name,' like ''%',replaced,'%'''); +insert into dev_bladex.temp_sync_info VALUES (syncId,db_name_var,table_name,lie_name,'','',@updateSql,NOW(), @bakUpdateSql,0); +PREPARE stmt FROM @updateSql; +EXECUTE stmt; +update dev_bladex.temp_sync_info set status = 1 where db_name = db_name_var and table_name = table_name and lie_name = lie_name and sync_id = syncId; +END WHILE; +CLOSE cur; +END; + +DROP TABLE `dev_hzims_operation`.`hzims_main_work_bench_copy1`; + +DROP TABLE `dev_hzims_operation`.`hzims_station_attribute_copy1`; + +DROP TABLE `dev_hzims_operation`.`hzims_station_attribute_copy2`; + +DROP TABLE `dev_hzims_operation`.`hzims_station_bak1110`; + +DROP TABLE `dev_hzims_operation`.`hzims_station_video_type_bak0907`; + +DROP TABLE `dev_hzims_operation`.`temp_hik_point`; + +SET FOREIGN_KEY_CHECKS=1; \ No newline at end of file diff --git a/hzims-service/operational/src/main/resources/db/1.0.1.sql b/hzims-service/operational/src/main/resources/db/1.0.1.sql deleted file mode 100644 index 1beb842..0000000 --- a/hzims-service/operational/src/main/resources/db/1.0.1.sql +++ /dev/null @@ -1,12 +0,0 @@ --- 日常维护库添加消息模板ID -alter table hzims_oper_maintenance_library add COLUMN `MESSAGE_TEMPLATE_ID` bigint(20) comment '消息推送模板ID'; --- 日常维护计划添加消息模板ID -alter table hzims_oper_maintenance_plan add COLUMN `MESSAGE_TEMPLATE_ID` bigint(20) comment '消息推送模板ID'; --- 日常维护任务添加消息模板ID -alter table hzims_oper_maintenance_task add COLUMN `MESSAGE_TEMPLATE_ID` bigint(20) comment '消息推送模板ID'; --- 日常维护库设备库编码长度修改 -alter table hzims_oper_maintenance_library MODIFY COLUMN `em_code` VARCHAR(50) comment '设备编码'; --- 日常维护库设备计划编码长度修改 -alter table hzims_oper_maintenance_plan MODIFY COLUMN `em_code` VARCHAR(50) comment '设备编码'; --- 日常维护库设备任务编码长度修改 -alter table hzims_oper_maintenance_task MODIFY COLUMN `em_code` VARCHAR(50) comment '设备编码'; \ No newline at end of file diff --git a/hzims-service/operational/src/main/resources/db/1.0.2.sql b/hzims-service/operational/src/main/resources/db/1.0.2.sql deleted file mode 100644 index 1acd90e..0000000 --- a/hzims-service/operational/src/main/resources/db/1.0.2.sql +++ /dev/null @@ -1,3 +0,0 @@ --- 站点集中监控属性表添加物模型属性标识、名称 -alter table hzims_station_attribute add column `SIGNAGE` VARCHAR(50) default null comment '加物模型属性标识'; -alter table hzims_station_attribute add column `SIGNAGE_NAME` VARCHAR(100) default null comment '加物模型属性标识名称'; \ No newline at end of file