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 8320c19e
authored
Mar 24, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
优化离线规则查询
1 parent
35a2ca5c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
src/main/resources/mapper/FakeOfflineVinMapper.xml
src/main/resources/mapper/FakeOfflineVinMapper.xml
View file @
8320c19
...
...
@@ -50,9 +50,11 @@
where tv.del_flag = 0
and tvd.bind_status = 1
and tvd.del_flag = 0
and ((timestampdiff(SECOND, tdl.last_gps_time, now()) > 259200 and
timestampdiff(SECOND, tdl.last_bs_time, now()) > 259200 and td.source = 1)
or (timestampdiff(SECOND, tdl.last_bs_time, now()) > 259200 and td.source = 0))
and ((timestampdiff(SECOND, tdl.last_gps_time, now())
>
259200 and timestampdiff(SECOND, tdl.last_bs_time, now())
>
259200)
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())
>
259200)
or (timestampdiff(SECOND, tdl.last_gps_time, now())
>
259200 and tdl.last_bs_time is null)
)
group by tv.id
</select>
...
...
@@ -79,8 +81,7 @@
tw.partner_order_no like '%${keywords}%'
or tv.vin like '%${keywords}%'
or tv.owner_name like '%${keywords}%'
or tv.id in (select vehicle_id from t_vehicle_device where del_flag = 0 and bind_status = 1 and sn like
'%${keywords}%')
or tv.id in (select vehicle_id from t_vehicle_device where del_flag = 0 and bind_status = 1 and sn like '%${keywords}%')
)
</if>
group by tv.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