Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
eshiled-new
/
ne-shield-trialdrive-admin
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 8c0cc7bf
authored
Mar 15, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge remote-tracking branch 'origin/v1.5.0' into v1.5.0
2 parents
1e060a01
08186e96
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
src/main/resources/mapper/VehicleMapper.xml
src/main/resources/mapper/VehicleMapper.xml
View file @
8c0cc7b
...
@@ -878,12 +878,8 @@
...
@@ -878,12 +878,8 @@
left join t_device td on td.sn = tvd.sn
left join t_device td on td.sn = tvd.sn
left join t_device_location tdl on tdl.sn = td.sn
left join t_device_location tdl on tdl.sn = td.sn
WHERE tvd.del_flag = 0 and tv.del_flag = 0 and tvd.bind_status = 1
WHERE tvd.del_flag = 0 and tv.del_flag = 0 and tvd.bind_status = 1
and (
and timestampdiff(SECOND, tdl.last_gps_time, now())
>
#{offlineTime}
(timestampdiff(SECOND, tdl.last_gps_time, now())
>
#{offlineTime}
and timestampdiff(SECOND, tdl.last_bs_time, now())
>
#{offlineTime}
and timestampdiff(SECOND, tdl.last_bs_time, now())
>
#{offlineTime} and td.source = 1)
or
(timestampdiff(SECOND, tdl.last_bs_time, now())
>
#{offlineTime} and td.source = 0)
)
<if
test=
"offlineSnStr != null and offlineSnStr != ''"
>
<if
test=
"offlineSnStr != null and offlineSnStr != ''"
>
and tvd.sn not in (${offlineSnStr})
and tvd.sn not in (${offlineSnStr})
</if>
</if>
...
@@ -928,8 +924,7 @@
...
@@ -928,8 +924,7 @@
and tvd.created_date > '2013-01-01 00:00:00.0'
and tvd.created_date > '2013-01-01 00:00:00.0'
<!--离线时间-->
<!--离线时间-->
<if
test=
"lostBegin != null"
>
<if
test=
"lostBegin != null"
>
and ((tdl.last_gps_time
<
#{lostBegin} and tdl.last_bs_time
<
#{lostBegin} and td.source = 1)
and tdl.last_gps_time
<
#{lostBegin} and tdl.last_bs_time
<
#{lostBegin}
or (tdl.last_bs_time
<
#{lostBegin} and td.source = 0))
</if>
</if>
</select>
</select>
...
...
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