feat(实体): 为停电事件同步表添加地区编码字段

新增 org_code 字段以支持按地区进行数据同步与筛选。
This commit is contained in:
yufengshuo 2026-03-27 15:24:01 +08:00
parent a4c40ff3ce
commit 7c0db4830d
2 changed files with 6 additions and 0 deletions

View File

@ -17,6 +17,11 @@ public class DnerDailyPowerOutageEventSync {
@TableId(type = IdType.AUTO)
private Long id;
/**
* 地区编码
*/
private String orgCode;
/**
* 日期(yyyy-mm-dd)
*/

View File

@ -234,6 +234,7 @@ create table dner_daily_power_outage_event_sync
id bigint unsigned auto_increment comment '主键ID'
primary key,
event_id BIGINT(20) NOT NULL COMMENT '关联事件ID',
org_code varchar(64) not null comment '地区编码',
date_time varchar(32) not null comment '日期(yyyy-mm-dd)',
sync_status int default 1 not null comment '同步状态 1 全部同步 2部分同步',
error_msg text null comment '同步失败原因',