From fd15e6f7dd6a2f6bccf27a8b06fc60211e7df28e Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期一, 28 九月 2026 09:05:49 +0800 Subject: [PATCH] Merge branch '2.3' of http://120.76.84.145:10101/gitblit/r/java/mx_charging_pile into 2.3 --- ruoyi-service/ruoyi-other/src/main/resources/sql/t_screen_content_alter.sql | 26 ++++++++++++++++++++++++-- 1 files changed, 24 insertions(+), 2 deletions(-) diff --git a/ruoyi-service/ruoyi-other/src/main/resources/sql/t_screen_content_alter.sql b/ruoyi-service/ruoyi-other/src/main/resources/sql/t_screen_content_alter.sql index 2328ae1..6592cc3 100644 --- a/ruoyi-service/ruoyi-other/src/main/resources/sql/t_screen_content_alter.sql +++ b/ruoyi-service/ruoyi-other/src/main/resources/sql/t_screen_content_alter.sql @@ -1,8 +1,30 @@ -- ---------------------------- -- 1、增加大屏名称配置字段 -alter table t_screen_content add column screen_name varchar(255) default 'NULL' null comment '大屏名称'; +alter table t_screen_content add column screen_name varchar(255) default '' null comment '大屏名称'; -- 2、增加储能电站表设备编号 -alter table t_emind_station add column station_code varchar(255) default 'NULL' null comment '设备编号'; +alter table t_emind_station add column station_code varchar(255) default '' null comment '设备编号'; +ALTER TABLE t_emind_dashboard_daily MODIFY COLUMN id BIGINT NOT NULL AUTO_INCREMENT comment '主键ID'; + +-- 3、储能能量连表增加(设备类型) +alter table t_emind_energy_chain add column station_type varchar(255) default '' null comment '设备类型'; + +-- 增加能量链详情表 +create table t_emind_energy_chain_detail +( + id bigint auto_increment comment '主键ID' + primary key, + platform_name varchar(100) null comment '所属平台(利普芯、欧力特)', + station_code varchar(255) null comment '设备编号', + station_id varchar(255) null comment '设备ID', + station_type varchar(255) null comment '设备类型(与能量链里面的设备类型进行关联)', + detail text null comment '设备详情json字段', + data_source int null comment '数据来源(1系统创建,2第三方接口)', + create_time datetime null comment '创建时间', + sync_time datetime null comment '同步时间', + update_time datetime null comment '更新时间', + del_flag char default '0' not null comment '删除标志(0存在 2删除)' +) + comment '能量链详情表' collate = utf8mb4_bin; -- Gitblit v1.7.1