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 ee4a3bb4
authored
May 16, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改sql
1 parent
bc39811f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
1.7.0_五月/超速报警迁移.sql
1.7.0_五月/超速报警迁移.sql
View file @
ee4a3bb
...
@@ -21,8 +21,8 @@ inner join t_nes_device tnd on edo.sn = tnd.sn;
...
@@ -21,8 +21,8 @@ inner join t_nes_device tnd on edo.sn = tnd.sn;
-- 超速报警老数据迁移写入
-- 超速报警老数据迁移写入
use
neshield
;
use
neshield
;
INSERT
INTO
t_device_speeding
(
sn
,
begin_time
,
end_time
,
duration
,
created_date
,
updated_date
)
INSERT
INTO
t_device_speeding
(
sn
,
begin_time
,
end_time
,
duration
,
average_speed
,
created_date
,
updated_date
)
select
sn
,
beginTime
,
endTime
,
duration
,
CURRENT_TIMESTAMP
,
CURRENT_TIMESTAMP
select
sn
,
beginTime
,
endTime
,
duration
,
averageSpeed
,
CURRENT_TIMESTAMP
,
CURRENT_TIMESTAMP
from
eshield_device_overspeed_copy
;
from
eshield_device_overspeed_copy
;
-- 超速报警老数据迁移更新vd_id和创建人
-- 超速报警老数据迁移更新vd_id和创建人
...
...
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