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 6dd8960d
authored
Oct 20, 2022
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
开发 1.12.0 版本 解决车辆列表设备调频状态不对的问题
1 parent
0e97e825
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
4 deletions
src/main/resources/mapper/VehicleMapper.xml
src/main/resources/mapper/VehicleMapper.xml
View file @
6dd8960
...
...
@@ -516,7 +516,7 @@
tv.vehicle_usages vehicleUsages,
tv.settle_flag settleFlag,
tv.created_date activateTime,
ddf.`status`
AS freqStatus,
(SELECT temp.status FROM t_device_freq temp where temp.vehicle_id = tv.id and temp.sn = tvd.sn order by created_date desc limit 1)
AS freqStatus,
tv.created_by createdBy
from t_vehicle tv
left join t_vehicle_device tvd on tvd.vehicle_id = tv.id
...
...
@@ -524,9 +524,6 @@
left join t_device td on td.sn = tvd.sn
left join t_device_location tdl on tdl.sn = tvd.sn
left join t_user tu on tu.id = tv.created_by
left join (select vehicle_id, sn, status from (SELECT * FROM t_device_freq order by created_date desc) temp
GROUP BY temp.sn) ddf on ddf.vehicle_id = tv.id and ddf.sn =
td.sn
where tv.del_flag = 0
and tvd.bind_status = 1
and tvd.del_flag = 0
...
...
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