Commit cce702ee by 杨林龙

Merge remote-tracking branch 'origin/master'

2 parents b07112d3 fda0e460
...@@ -42,8 +42,6 @@ from d_alarm_second_data dasd ...@@ -42,8 +42,6 @@ from d_alarm_second_data dasd
-- 老数据迁移写入 -- 老数据迁移写入
use neshield; use neshield;
select count(1) from t_alarm_second_data;
INSERT INTO t_alarm_second_data (sn, type, name, alarm_time, alarm_address, INSERT INTO t_alarm_second_data (sn, type, name, alarm_time, alarm_address,
leave_time, stay_time, lng, lat, event_time, leave_time, stay_time, lng, lat, event_time,
created_date, updated_date) created_date, updated_date)
......
...@@ -31,3 +31,47 @@ INSERT INTO t_alarm_warn_alarm_type (id, alarm_type, type_desc, alarm_level, cre ...@@ -31,3 +31,47 @@ INSERT INTO t_alarm_warn_alarm_type (id, alarm_type, type_desc, alarm_level, cre
INSERT INTO t_alarm_warn_alarm_type (id, alarm_type, type_desc, alarm_level, created_date,created_by) VALUES (11, 11, '安装点离线', null, '2020-08-05 19:16:53', 1); INSERT INTO t_alarm_warn_alarm_type (id, alarm_type, type_desc, alarm_level, created_date,created_by) VALUES (11, 11, '安装点离线', null, '2020-08-05 19:16:53', 1);
INSERT INTO t_alarm_warn_alarm_type (id, alarm_type, type_desc, alarm_level, created_date,created_by) VALUES (12, 12, '安装后首周有线设备长停', null, '2020-08-05 19:16:53', 1); INSERT INTO t_alarm_warn_alarm_type (id, alarm_type, type_desc, alarm_level, created_date,created_by) VALUES (12, 12, '安装后首周有线设备长停', null, '2020-08-05 19:16:53', 1);
INSERT INTO t_alarm_warn_alarm_type (id, alarm_type, type_desc, alarm_level, created_date,created_by) VALUES (13, 13, '跨省跨市后进入高危区域', null, '2020-08-05 19:16:53', 1); INSERT INTO t_alarm_warn_alarm_type (id, alarm_type, type_desc, alarm_level, created_date,created_by) VALUES (13, 13, '跨省跨市后进入高危区域', null, '2020-08-05 19:16:53', 1);
-- e盾警情研判表
create table t_alarm_warn_analyse
(
id int auto_increment
primary key,
device_noes varchar(255) null comment '多个设备号',
alarm_time datetime null comment '报警时间',
deal_status int(2) default 2 null comment '状态',
vehicle_id int(11) null comment '车辆id',
alarm_level int(11) null comment '警情等级',
alarm_explain varchar(255) null comment '警情说明',
alarm_suggest varchar(255) null comment '警情建议',
alarm_type int(11) null comment '警情类型',
del_flag tinyint default 0 null comment '是否删除 0=正常 -1=删除',
created_date datetime null comment '创建时间|入库时间',
created_by int(11) null comment '创建人用户id',
updated_date datetime null comment '更新时间',
updated_by int(11) null comment '更新人用户id',
KEY `idx_vehicle_id` (`vehicle_id`),
KEY `idx_alarm_level` (`alarm_level`),
KEY `idx_alarm_time` (`alarm_time`)
)
comment 'e盾警情表';
-- 警情研判处理日志表
create table t_alarm_warn_analyse_process
(
id int auto_increment
primary key,
alarm_id int(11) null comment '警情表id',
process_time datetime null comment '处理时间',
resolvent varchar(255) null comment '采取措施',
remark varchar(255) null comment '备注',
del_flag tinyint default 0 null comment '是否删除 0=正常 -1=删除',
created_date datetime null comment '创建时间|入库时间',
created_by int(11) null comment '创建人用户id',
updated_date datetime null comment '更新时间',
updated_by int(11) null comment '更新人用户id',
KEY `idx_alarm_id` (`alarm_id`)
)
comment ' 警情处理日志表';
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!