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 e1026ab9
authored
Apr 27, 2022
by
向延琳
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
里程数据初始化
1 parent
87e8257c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
1.6.0_四月/1.6.0数据库SQL脚本.sql
1.6.0_四月/1.6.0数据库SQL脚本.sql
View file @
e1026ab
...
@@ -155,4 +155,11 @@ where tvd.sn = tefs.sn
...
@@ -155,4 +155,11 @@ where tvd.sn = tefs.sn
update
t_electric_fence_sns
tefs
,
t_vehicle_device
tvd
,
t_vehicle
tv
update
t_electric_fence_sns
tefs
,
t_vehicle_device
tvd
,
t_vehicle
tv
set
tefs
.
vd_id
=
tvd
.
id
set
tefs
.
vd_id
=
tvd
.
id
where
tvd
.
sn
=
tefs
.
sn
where
tvd
.
sn
=
tefs
.
sn
and
tv
.
id
=
tvd
.
vehicle_id
;
\ No newline at end of file
\ No newline at end of file
and
tv
.
id
=
tvd
.
vehicle_id
;
-- 里程初始化
INSERT
INTO
t_device_journey_overview
(
sn
,
vd_id
,
total_journey_count
,
distance
,
created_by
,
created_date
,
updated_date
)
select
sn
,
vd_id
,
count
(
1
),
sum
(
mileage
),
created_by
,
created_date
,
updated_date
from
t_device_journey
where
vd_id
is
not
null
group
by
sn
,
vd_id
;
\ 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