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
fb40f03c
Commit
fb40f03c
authored
Nov 15, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
订单列表优化
parent
cd9c6bbd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
BaseOrderMapper.xml
...rder-server/src/main/resources/mapper/BaseOrderMapper.xml
+8
-9
No files found.
xx-order/xx-order-server/src/main/resources/mapper/BaseOrderMapper.xml
View file @
fb40f03c
...
@@ -276,11 +276,10 @@
...
@@ -276,11 +276,10 @@
and b1.no like CONCAT ("%", #{no}, "%")
and b1.no like CONCAT ("%", #{no}, "%")
</if>
</if>
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
and (r.start_time between #{startTime} and #{endTime}
and o1.start_time between #{startTime} and #{endTime}
or t.start_time between #{startTime} and #{endTime})
</if>
</if>
<if
test=
"vehicleIds != null and vehicleIds.size() > 0"
>
<if
test=
"vehicleIds != null and vehicleIds.size() > 0"
>
AND
r
.vehicle_id IN
AND
o1
.vehicle_id IN
<foreach
collection=
"vehicleIds"
item=
"vehicleId"
open=
"("
close=
")"
separator=
","
>
<foreach
collection=
"vehicleIds"
item=
"vehicleId"
open=
"("
close=
")"
separator=
","
>
#{vehicleId}
#{vehicleId}
</foreach>
</foreach>
...
@@ -297,18 +296,18 @@
...
@@ -297,18 +296,18 @@
)
)
</if>
</if>
<if
test=
"zoneIds != null and zoneIds.size > 0"
>
<if
test=
"zoneIds != null and zoneIds.size > 0"
>
and (r.start_zone_id in
and (o1.start_zone_id in
<foreach
collection=
"zoneIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
or t.start_zone_id in
<foreach
collection=
"zoneIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"zoneIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
#{id}
</foreach>
</foreach>
<!-- or t.start_zone_id in-->
<!-- <foreach collection="zoneIds" item="id" open="(" separator="," close=")">-->
<!-- #{id}-->
<!-- </foreach>-->
)
)
</if>
</if>
</where>
</where>
order by b.crt_time desc
order by b
1
.crt_time desc
</select>
</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