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 12432f94
authored
Oct 22, 2021
by
杨林龙
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
新E盾 1.30 版本开发 修改里程统计
1 parent
9ecdb420
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
src/main/resources/mapper/TrialMileageMapper.xml
src/main/resources/mapper/TrialMileageMapper.xml
View file @
12432f9
...
@@ -32,16 +32,11 @@
...
@@ -32,16 +32,11 @@
GROUP_CONCAT(td.sn) sn,
GROUP_CONCAT(td.sn) sn,
tv.vin
tv.vin
FROM t_vehicle tv
FROM t_vehicle tv
inner join t_trial_drive_vehicle ttdv on ttdv.vehicle_id = tv.id
LEFT JOIN t_vehicle_device tvd on tvd.vehicle_id = tv.id
LEFT JOIN t_vehicle_device tvd on tvd.vehicle_id = tv.id
LEFT JOIN t_device td on td.sn = tvd.sn
LEFT JOIN t_device td on td.sn = tvd.sn
LEFT JOIN t_workorder tw ON tw.id = tv.workorder_id
LEFT JOIN t_workorder tw ON tw.id = tv.workorder_id and tw.del_flag = 0
WHERE tw.del_flag = 0
WHERE tv.del_flag = 0
AND tv.del_flag = 0
AND tvd.his_type = 1
AND ttdv.del_flag = 0
AND tvd.bind_status = 1
AND tvd.trial_type = 1
AND td.del_flag = 0
<if
test=
"orgId != null"
>
<if
test=
"orgId != null"
>
and tv.created_by = #{orgId}
and tv.created_by = #{orgId}
</if>
</if>
...
...
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