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
bbfcfe69
Commit
bbfcfe69
authored
Sep 10, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
租车订单添加车牌查询
parent
7a26bea8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
BaseOrderMapper.xml
...rder-server/src/main/resources/mapper/BaseOrderMapper.xml
+6
-6
No files found.
xx-order/xx-order-server/src/main/resources/mapper/BaseOrderMapper.xml
View file @
bbfcfe69
...
@@ -113,12 +113,7 @@
...
@@ -113,12 +113,7 @@
<select
id=
"listOrder"
parameterType=
"Map"
resultMap=
"orderListMap"
>
<select
id=
"listOrder"
parameterType=
"Map"
resultMap=
"orderListMap"
>
select b.*
select b.*
from base_order b
from base_order b
LEFT JOIN
LEFT JOIN order_rent_vehicle_detail r on r.order_id = b.id
(SELECT * FROM order_rent_vehicle_detail
<if
test=
"vehicleIds != null and vehicleIds.size() > 0"
>
WHERE `vehicle_id` IN
<foreach
collection=
"vehicleIds"
item=
"vehicleId"
open=
"("
close=
")"
separator=
","
>
#{vehicleId}
</foreach>
</if>
) r on r.order_id = b.id
LEFT JOIN order_tour_detail t on t.order_id = b.id
LEFT JOIN order_tour_detail t on t.order_id = b.id
LEFT JOIN order_member_detail m on m.order_id = b.id
LEFT JOIN order_member_detail m on m.order_id = b.id
<where>
<where>
...
@@ -147,6 +142,11 @@
...
@@ -147,6 +142,11 @@
and (r.start_time between #{startTime} and #{endTime}
and (r.start_time between #{startTime} and #{endTime}
or t.start_time between #{startTime} and #{endTime})
or t.start_time between #{startTime} and #{endTime})
</if>
</if>
<if
test=
"vehicleIds != null and vehicleIds.size() > 0"
>
AND r.vehicle_id IN
<foreach
collection=
"vehicleIds"
item=
"vehicleId"
open=
"("
close=
")"
separator=
","
>
#{vehicleId}
</foreach>
</if>
<if
test=
"companyIds != null and companyIds.size > 0"
>
<if
test=
"companyIds != null and companyIds.size > 0"
>
and (r.start_company_id in
and (r.start_company_id in
<foreach
collection=
"companyIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"companyIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
...
...
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