Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
youjj
cloud-platform
Commits
7d8885ab
Commit
7d8885ab
authored
Oct 23, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加根据预定记录ID获取出行记录接口
parent
1d54f0b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
VehicleMapper.xml
...ehicle-server/src/main/resources/mapper/VehicleMapper.xml
+2
-7
No files found.
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleMapper.xml
View file @
7d8885ab
...
...
@@ -85,7 +85,7 @@
LEFT JOIN branch_company bc1 ON v.expect_destination_branch_company_id = bc1.id
-- 所属分公司
LEFT JOIN branch_company bc2 ON v.subordinate_branch = bc2.id
LEFT JOIN vehicle_book_record v2 on v2.
vehicle_id = v.id
LEFT JOIN vehicle_book_record v2 on v2.
id = (select id from vehicle_book_record where vehicle_id = v.id order by update_time DESC LIMIT 1),
LEFT JOIN vehicle_departure_log v3 on v2.id = v3.book_record_id
where
v.is_del=0
...
...
@@ -171,8 +171,6 @@
and bc.zone_id=#{zoneId}
</if>
</if>
GROUP BY v.id
order by v2.update_time DESC
) r ORDER BY r.parkBranchCompanyName
</select>
...
...
@@ -211,7 +209,6 @@
v.receive_time,
v.update_time,
v.model_id,
MAX(v2.update_time),
v.mileage_last_update as mileage
<if
test=
" yearMonthAndParam !=null "
>
,vbi.booked_date
...
...
@@ -227,7 +224,7 @@
LEFT JOIN branch_company bc1 ON v.expect_destination_branch_company_id = bc1.id
-- 所属分公司
LEFT JOIN branch_company bc2 ON v.subordinate_branch = bc2.id,
LEFT JOIN vehicle_book_record v2 on v2.
vehicle_id = v.id
,
LEFT JOIN vehicle_book_record v2 on v2.
id = (select id from vehicle_book_record where vehicle_id = v.id order by update_time DESC LIMIT 1)
,
LEFT JOIN vehicle_departure_log v3 on v2.id = v3.book_record_id
where
v.is_del=0
...
...
@@ -336,8 +333,6 @@
and bc.zone_id=#{zoneId}
</if>
</if>
GROUP BY v.id
order by v2.update_time DESC
) r ORDER BY r.parkBranchCompanyName
</select>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment