feat(实体): 为停电事件同步表添加地区编码字段
新增 org_code 字段以支持按地区进行数据同步与筛选。
This commit is contained in:
parent
a4c40ff3ce
commit
7c0db4830d
@ -17,6 +17,11 @@ public class DnerDailyPowerOutageEventSync {
|
|||||||
@TableId(type = IdType.AUTO)
|
@TableId(type = IdType.AUTO)
|
||||||
private Long id;
|
private Long id;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 地区编码
|
||||||
|
*/
|
||||||
|
private String orgCode;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 日期(yyyy-mm-dd)
|
* 日期(yyyy-mm-dd)
|
||||||
*/
|
*/
|
||||||
|
|||||||
@ -234,6 +234,7 @@ create table dner_daily_power_outage_event_sync
|
|||||||
id bigint unsigned auto_increment comment '主键ID'
|
id bigint unsigned auto_increment comment '主键ID'
|
||||||
primary key,
|
primary key,
|
||||||
event_id BIGINT(20) NOT NULL COMMENT '关联事件ID',
|
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)',
|
date_time varchar(32) not null comment '日期(yyyy-mm-dd)',
|
||||||
sync_status int default 1 not null comment '同步状态 1 全部同步 2部分同步',
|
sync_status int default 1 not null comment '同步状态 1 全部同步 2部分同步',
|
||||||
error_msg text null comment '同步失败原因',
|
error_msg text null comment '同步失败原因',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user