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 fe373d0c
authored
Mar 15, 2022
by
王欣伟
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
离线规则修改完成
1 parent
08186e96
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
6 deletions
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
src/main/resources/mapper/VehicleMapper.xml
src/main/java/cn/com/glsx/admin/modules/service/VehicleService.java
View file @
fe373d0
This diff is collapsed.
Click to expand it.
src/main/resources/mapper/VehicleMapper.xml
View file @
fe373d0
...
...
@@ -740,9 +740,11 @@
and tvd.bind_status = 1
and tvd.del_flag = 0
<if
test=
"offlineStartTime != null and offlineStartTime != ''"
>
and ((tdl.last_gps_time
<
#{offlineStartTime} and tdl.last_bs_time
<
#{offlineStartTime}
and td.source = 1)
or (tdl.last_bs_time
<
#{offlineStartTime} and td.source = 0))
and ((tdl.last_gps_time
<
#{offlineStartTime} and tdl.last_bs_time
<
#{offlineStartTime})
or (tdl.last_gps_time is null and tdl.last_bs_time is null)
or (tdl.last_gps_time is null and tdl.last_bs_time
<
#{offlineStartTime})
or (tdl.last_gps_time
<
#{offlineStartTime} and tdl.last_bs_time is null)
)
</if>
<if
test=
"activeStartTime != null and activeStartTime != ''"
>
and tvd.created_date
>
= #{activeStartTime}
...
...
@@ -878,8 +880,11 @@
left join t_device td on td.sn = tvd.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
and timestampdiff(SECOND, tdl.last_gps_time, now())
>
#{offlineTime}
and timestampdiff(SECOND, tdl.last_bs_time, now())
>
#{offlineTime}
and ((timestampdiff(SECOND, tdl.last_gps_time, now())
>
#{offlineTime} and timestampdiff(SECOND, tdl.last_bs_time, now())
>
#{offlineTime})
or (tdl.last_gps_time is null and tdl.last_bs_time is null)
or (tdl.last_gps_time is null and timestampdiff(SECOND, tdl.last_bs_time, now())
>
#{offlineTime})
or (timestampdiff(SECOND, tdl.last_gps_time, now())
>
#{offlineTime} and tdl.last_bs_time is null)
)
<if
test=
"offlineSnStr != null and offlineSnStr != ''"
>
and tvd.sn not in (${offlineSnStr})
</if>
...
...
@@ -924,7 +929,11 @@
and tvd.created_date > '2013-01-01 00:00:00.0'
<!--离线时间-->
<if
test=
"lostBegin != null"
>
and tdl.last_gps_time
<
#{lostBegin} and tdl.last_bs_time
<
#{lostBegin}
and ((tdl.last_gps_time
<
#{lostBegin} and tdl.last_bs_time
<
#{lostBegin})
or (tdl.last_gps_time is null and tdl.last_bs_time is null)
or (tdl.last_gps_time is null and tdl.last_bs_time
<
#{lostBegin})
or (tdl.last_gps_time
<
#{lostBegin} and tdl.last_bs_time is null)
)
</if>
</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