yang_shj
1 year ago
11 changed files with 96 additions and 147 deletions
@ -1,34 +0,0 @@
|
||||
-- 站点表添加是否为国外 |
||||
alter table `hzims_station` add column `is_abroad` TINYINT(1) NULL comment '站点是否为国外 1:是;0:否'; |
||||
-- 添加站点推送FDP配置表 |
||||
CREATE TABLE IF NOT EXISTS `hzims_station_push_configuration` ( |
||||
`ID` bigint(20) NOT NULL COMMENT '主键ID', |
||||
`station_type` TINYINT(2) NULL DEFAULT NULL COMMENT '站点类型', |
||||
`station_type_name` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '站点类型名称', |
||||
`is_push` TINYINT(2) NULL DEFAULT NULL COMMENT '是否推送至FDP', |
||||
`TENANT_ID` varchar(12) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL COMMENT '租户ID', |
||||
`CREATE_TIME` datetime NOT NULL COMMENT '创建时间', |
||||
`UPDATE_TIME` datetime 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 comment='站点类型推送FDP配置表'; |
||||
SET FOREIGN_KEY_CHECKS = 1; |
||||
-- 新增FDP站点类型 |
||||
alter table `hzims_station_push_configuration` add COLUMN `fdp_station_type` TINYINT comment 'FDP站点类型'; |
||||
-- 站点类型配置导入 |
||||
INSERT INTO `hzims_station_push_configuration` (`ID`, `station_type`, `station_type_name`, `is_push`, `TENANT_ID`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`, `IS_DELETED`, `STATUS`, `CREATE_DEPT`, `fdp_station_type`) VALUES (1676388588253700097, 0, '水电站', 1, '200000', '2023-07-05 08:32:40', '2023-07-05 08:32:40', 1434782836098891778, 1434782836098891778, 0, 1, 20000001, 1); |
||||
INSERT INTO `hzims_station_push_configuration` (`ID`, `station_type`, `station_type_name`, `is_push`, `TENANT_ID`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`, `IS_DELETED`, `STATUS`, `CREATE_DEPT`, `fdp_station_type`) VALUES (1679458050905264129, 1, '风电场', 0, '200000', '2023-07-13 19:49:37', '2023-07-13 19:49:37', 1434782836098891778, 1434782836098891778, 0, 1, 20000001, NULL); |
||||
INSERT INTO `hzims_station_push_configuration` (`ID`, `station_type`, `station_type_name`, `is_push`, `TENANT_ID`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`, `IS_DELETED`, `STATUS`, `CREATE_DEPT`, `fdp_station_type`) VALUES (1679458136703946754, 2, '水利', 0, '200000', '2023-07-13 19:49:57', '2023-07-13 19:49:57', 1434782836098891778, 1434782836098891778, 0, 1, 20000001, NULL); |
||||
INSERT INTO `hzims_station_push_configuration` (`ID`, `station_type`, `station_type_name`, `is_push`, `TENANT_ID`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`, `IS_DELETED`, `STATUS`, `CREATE_DEPT`, `fdp_station_type`) VALUES (1679458400022351873, 3, '储能站', 0, '200000', '2023-07-13 19:51:00', '2023-07-13 19:51:00', 1434782836098891778, 1434782836098891778, 0, 1, 20000001, NULL); |
||||
INSERT INTO `hzims_station_push_configuration` (`ID`, `station_type`, `station_type_name`, `is_push`, `TENANT_ID`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`, `IS_DELETED`, `STATUS`, `CREATE_DEPT`, `fdp_station_type`) VALUES (1679458474366390273, 4, '配网', 0, '200000', '2023-07-13 19:51:18', '2023-07-13 19:51:18', 1434782836098891778, 1434782836098891778, 0, 1, 20000001, NULL); |
||||
INSERT INTO `hzims_station_push_configuration` (`ID`, `station_type`, `station_type_name`, `is_push`, `TENANT_ID`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`, `IS_DELETED`, `STATUS`, `CREATE_DEPT`, `fdp_station_type`) VALUES (1679458557384249346, 5, '光伏站', 0, '200000', '2023-07-13 19:51:38', '2023-07-13 19:51:38', 1434782836098891778, 1434782836098891778, 0, 1, 20000001, NULL); |
||||
INSERT INTO `hzims_station_push_configuration` (`ID`, `station_type`, `station_type_name`, `is_push`, `TENANT_ID`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`, `IS_DELETED`, `STATUS`, `CREATE_DEPT`, `fdp_station_type`) VALUES (1679458617685757954, 6, '水务', 0, '200000', '2023-07-13 19:51:52', '2023-07-13 19:51:52', 1434782836098891778, 1434782836098891778, 0, 1, 20000001, NULL); |
||||
INSERT INTO `hzims_station_push_configuration` (`ID`, `station_type`, `station_type_name`, `is_push`, `TENANT_ID`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`, `IS_DELETED`, `STATUS`, `CREATE_DEPT`, `fdp_station_type`) VALUES (1679458692029796354, 7, '充电站', 0, '200000', '2023-07-13 19:52:10', '2023-07-13 19:52:10', 1434782836098891778, 1434782836098891778, 0, 1, 20000001, NULL); |
||||
INSERT INTO `hzims_station_push_configuration` (`ID`, `station_type`, `station_type_name`, `is_push`, `TENANT_ID`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`, `IS_DELETED`, `STATUS`, `CREATE_DEPT`, `fdp_station_type`) VALUES (1679458773470597121, 8, '泵站', 0, '200000', '2023-07-13 19:52:29', '2023-07-13 19:52:29', 1434782836098891778, 1434782836098891778, 0, 1, 20000001, NULL); |
||||
INSERT INTO `hzims_station_push_configuration` (`ID`, `station_type`, `station_type_name`, `is_push`, `TENANT_ID`, `CREATE_TIME`, `UPDATE_TIME`, `CREATE_USER`, `UPDATE_USER`, `IS_DELETED`, `STATUS`, `CREATE_DEPT`, `fdp_station_type`) VALUES (1679458845390327809, 9, '闸门', 0, '200000', '2023-07-13 19:52:46', '2023-07-13 19:52:46', 1434782836098891778, 1434782836098891778, 0, 1, 20000001, NULL); |
||||
-- 交接班中新增当前处理环节字段 |
||||
alter table `hz_ims_duty_rec` add COLUMN `deal_chain` varchar(100) comment '当前处理环节'; |
@ -1,5 +0,0 @@
|
||||
update hzims_oper_maintenance_task set flow_task_name = '待领用' where STATUS =1; |
||||
update hzims_oper_maintenance_task set flow_task_name = '待执行' where STATUS =2; |
||||
update hzims_oper_maintenance_task set flow_task_name = '待确认' where STATUS =3; |
||||
update hzims_oper_maintenance_task set flow_task_name = '待归档' where STATUS =4; |
||||
update hzims_oper_maintenance_task set flow_task_name = '结束' where STATUS =5; |
@ -1,32 +0,0 @@
|
||||
alter table hzims_station add discharge_facilities varchar(100) null comment '生态流量泄放设施'; |
||||
alter table hzims_station add monitoring_mode varchar(100) null comment '监测方式'; |
||||
alter table hzims_station add is_power_station tinyint(0) comment '是否绿色小水电示范电站 0 否 1 是'; |
||||
|
||||
create table video_station( |
||||
id bigint primary key auto_increment comment '图片id', |
||||
video varchar(300) not null comment '视频地址', |
||||
station_id bigint not null comment '站点ID', |
||||
create_time datetime default CURRENT_TIMESTAMP, |
||||
update_time datetime default current_timestamp on update current_timestamp, |
||||
is_deleted tinyint default 0 comment '0 正常 1 删除' |
||||
) comment '电站视频'; |
||||
|
||||
|
||||
create table image_station( |
||||
id bigint primary key auto_increment comment '图片id', |
||||
image varchar(300) not null comment '图片地址', |
||||
station_id bigint not null comment '站点ID', |
||||
create_time datetime default CURRENT_TIMESTAMP, |
||||
update_time datetime default current_timestamp on update current_timestamp, |
||||
is_deleted tinyint default 0 comment '0 正常 1 删除' |
||||
) comment '电站图片'; |
||||
|
||||
|
||||
create table file_station( |
||||
id bigint primary key auto_increment comment '图片id', |
||||
file varchar(300) not null comment '文件地址', |
||||
station_id bigint not null comment '站点ID', |
||||
create_time datetime default CURRENT_TIMESTAMP, |
||||
update_time datetime default current_timestamp on update current_timestamp, |
||||
is_deleted tinyint default 0 comment '0 正常 1 删除' |
||||
) comment '电站文件'; |
@ -1 +0,0 @@
|
||||
alter table hzims_station add discharge_value varchar(60) comment '核定值'; |
@ -1,39 +0,0 @@
|
||||
create table station_evaluation |
||||
( |
||||
id bigint primary key auto_increment comment '编号', |
||||
evaluation_name varchar(50) comment '类别', |
||||
station_id bigint comment '站点id', |
||||
parent_id bigint comment '父级', |
||||
level int comment '等级', |
||||
minute int comment '分数', |
||||
score int comment '得分', |
||||
description text comment '描述', |
||||
create_time datetime default current_timestamp comment '创建时间', |
||||
update_time datetime default current_timestamp on update current_timestamp comment '更新时间', |
||||
is_deleted tinyint(1) default 0 comment '逻辑删除' |
||||
) comment '电站评分表'; |
||||
|
||||
|
||||
create table evaluation_details |
||||
( |
||||
id bigint primary key auto_increment comment '编号', |
||||
station_evaluation_id bigint comment '电站评分id', |
||||
title varchar(100) comment '选择题目', |
||||
checked tinyint(1) comment '是否选中 1 选中 0 不选中', |
||||
grade int comment '分数', |
||||
create_time datetime default current_timestamp comment '创建时间', |
||||
update_time datetime default current_timestamp on update current_timestamp comment '更新时间', |
||||
is_deleted tinyint(1) default 0 comment '逻辑删除' |
||||
) comment '得分事项简述'; |
||||
|
||||
create table evaluation_details_option |
||||
( |
||||
id bigint primary key auto_increment comment '编号', |
||||
option_title varchar(100) comment '题目', |
||||
option_checked tinyint(1) comment '是否选中 1 选中 0 不选中', |
||||
option_grade int comment '分数', |
||||
create_time datetime default current_timestamp comment '创建时间', |
||||
update_time datetime default current_timestamp on update current_timestamp comment '更新时间', |
||||
is_deleted tinyint(1) default 0 comment '逻辑删除' |
||||
) comment '选择表'; |
||||
|
@ -1,2 +0,0 @@
|
||||
|
||||
alter table evaluation_details_option add evaluation_details_id bigint comment '得分事项简述id'; |
@ -1,9 +0,0 @@
|
||||
create table estimate( |
||||
id bigint primary key auto_increment, |
||||
name varchar(200) comment '基本条件', |
||||
checked tinyint(1) comment '0 为选择 1 为选中', |
||||
create_time datetime default current_timestamp comment '创建时间', |
||||
update_time datetime default current_timestamp on update current_timestamp comment '更新时间', |
||||
is_deleted tinyint(1) default 0 comment '逻辑删除' |
||||
|
||||
) comment '总体评分附表'; |
Loading…
Reference in new issue