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
318a2227
Commit
318a2227
authored
Nov 22, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
后台订单列表修改
parent
d962307e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
42 deletions
+15
-42
BaseOrderMapper.xml
...rder-server/src/main/resources/mapper/BaseOrderMapper.xml
+15
-42
No files found.
xx-order/xx-order-server/src/main/resources/mapper/BaseOrderMapper.xml
View file @
318a2227
...
...
@@ -241,85 +241,58 @@
</select>
<select
id=
"getAllOrderList"
parameterType=
"Map"
resultType=
"com.xxfc.platform.order.pojo.bg.BgOrderListVo"
>
SELECT
DISTINCT(b1.id),
bc1.`name` AS startCompanyName,
bc2. NAME AS endCompanyName,
v1.number_plate AS numberPlate,
v1.code AS vehicleCode,
a1. NAME AS username,
a2.username AS telephone,
a2.id As userId,
b1.id AS orderId,
b1.`no` AS orderNo,
b1.`status` as status,
b1.`name` as vehicleName,
b1.crt_time as crtTime,
o1.start_time as startTime,
o1.end_time as endTime,
b1.real_amount as realAmount,
b1.pay_way as payWay,
o1.id as detailId,
b1.pay_time as payTime
FROM
base_order b1
LEFT JOIN order_rent_vehicle_detail o1 ON b1.detail_id = o1.id
LEFT JOIN vehicle.branch_company bc1 ON bc1.id = o1.start_company_id
LEFT JOIN vehicle.branch_company bc2 ON bc2.id = o1.end_company_id
LEFT JOIN vehicle.vehicle v1 ON v1.id = o1.vehicle_id
LEFT JOIN xxfc_third_platform.id_information a1 ON b1.user_id = a1.user_login_id
LEFT JOIN ag_admin_v1.app_user_login a2 ON a2.id = b1.user_id
SELECT * from order_list_info
<where>
<if
test=
"userIds != null and userIds.size() > 0"
>
and
b1.user_i
d in
and
userI
d in
<foreach
collection=
"userIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
</foreach>
</if>
<if
test=
"phone != null and phone != ''"
>
and
a2.usernam
e like CONCAT ("%", #{phone}, "%")
and
telephon
e like CONCAT ("%", #{phone}, "%")
</if>
<if
test=
"realName != null and realName != ''"
>
and
a1.
name like CONCAT ("%", #{realName}, "%")
and
user
name like CONCAT ("%", #{realName}, "%")
</if>
<if
test=
"userId != null"
>
and
b1.user_i
d = #{userId}
and
userI
d = #{userId}
</if>
<if
test=
"status != null"
>
and
b1.
status = #{status}
and status = #{status}
</if>
<if
test=
"type != null"
>
and
b1.
type = #{type}
and type = #{type}
</if>
<if
test=
"no != null and no != '' "
>
and
b1.n
o like CONCAT ("%", #{no}, "%")
and
orderN
o like CONCAT ("%", #{no}, "%")
</if>
<if
test=
"plateNumber != null and plateNumber != '' "
>
and
v1.number_p
late like CONCAT ("%", #{plateNumber}, "%")
and
numberP
late like CONCAT ("%", #{plateNumber}, "%")
</if>
<if
test=
"vehicleCode != null"
>
and v
1.c
ode = #{vehicleCode}
and v
ehicleC
ode = #{vehicleCode}
</if>
<if
test=
"startTime != null"
>
and
o1.start_t
ime between #{startTime} and #{endTime}
and
startT
ime between #{startTime} and #{endTime}
</if>
<if
test=
"companyIds != null and companyIds.size > 0"
>
and (
o1.start_company_i
d in
and (
startCompanyI
d in
<foreach
collection=
"companyIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
or
o1.end_company_i
d in
endCompanyI
d in
<foreach
collection=
"companyIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
)
</if>
<if
test=
"zoneId != null"
>
and (
bc1.zone_id = #{zoneId} or bc2.zone_i
d = #{zoneId})
and (
startZoneId = #{zoneId} or endZoneI
d = #{zoneId})
</if>
</where>
order by
b1.crt_t
ime desc
order by
crtT
ime desc
</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