Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-opsdoc
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit fda0e460
authored
Jun 09, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
sql
1 parent
55112489
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
2 deletions
1.7.0_五月/二押警情迁移.sql
1.8.0_六月/1.8.0数据库SQL脚本.sql
1.7.0_五月/二押警情迁移.sql
View file @
fda0e46
...
@@ -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
)
...
...
1.8.0_六月/1.8.0数据库SQL脚本.sql
View file @
fda0e46
...
@@ -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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment