From 85b2001c0ec2f1adc598db3bf47ad457dcca7074 Mon Sep 17 00:00:00 2001 From: dengzedong <dengzedong@email> Date: 星期四, 19 十二月 2024 16:37:53 +0800 Subject: [PATCH] item-chart 空point校验 --- iailab-module-data/iailab-module-data-biz/db/mysql/tenant.sql | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/db/mysql/tenant.sql b/iailab-module-data/iailab-module-data-biz/db/mysql/tenant.sql index 354998b..b000a0f 100644 --- a/iailab-module-data/iailab-module-data-biz/db/mysql/tenant.sql +++ b/iailab-module-data/iailab-module-data-biz/db/mysql/tenant.sql @@ -129,7 +129,7 @@ ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT='KIO测点表'; CREATE TABLE t_da_point( - `id` VARCHAR(255) NOT NULL COMMENT 'ID' , + `id` VARCHAR(36) NOT NULL COMMENT 'ID' , `point_no` VARCHAR(36) COMMENT '测点编码' , `point_name` VARCHAR(36) COMMENT '测点名称' , `point_type` VARCHAR(10) COMMENT '测点类型' , @@ -169,7 +169,7 @@ CREATE TABLE t_da_math_point( `id` VARCHAR(36) NOT NULL COMMENT 'ID' , `point_id` VARCHAR(36) COMMENT '测点ID' , - `expression` VARCHAR(500) COMMENT '计算公式' , + `expression` VARCHAR(2000) COMMENT '计算公式' , PRIMARY KEY (id) USING BTREE, UNIQUE KEY `uk_point_id` (`point_id`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT = '计算点表'; @@ -402,10 +402,10 @@ CREATE TABLE t_da_point_collect_status( `id` VARCHAR(36) NOT NULL COMMENT 'ID' , - `point_id` VARCHAR(36) NOT NULL COMMENT '测点ID', - `collect_value` VARCHAR(36) COMMENT '采集值', - `collect_quality` VARCHAR(36) COMMENT '采集质量', + `point_no` VARCHAR(36) NOT NULL COMMENT '测点编码', + `collect_value` VARCHAR(24) COMMENT '采集值', + `collect_quality` VARCHAR(5) COMMENT '采集质量', `collect_time` DATETIME COMMENT '采集时间' , PRIMARY KEY (id) USING BTREE, - UNIQUE KEY `uk_point_id` (`point_id`) USING BTREE + UNIQUE KEY `uk_point_no` (`point_no`) USING BTREE ) ENGINE=InnoDB DEFAULT CHARSET=utf8 ROW_FORMAT=DYNAMIC COMMENT = '测点采集状态表'; \ No newline at end of file -- Gitblit v1.9.3