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
bae1d847
Commit
bae1d847
authored
Nov 22, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master-background-bug' into dev
parents
28037675
d72078a1
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
42 deletions
+18
-42
BgOrderListVo.java
...n/java/com/xxfc/platform/order/pojo/bg/BgOrderListVo.java
+3
-0
BaseOrderMapper.xml
...rder-server/src/main/resources/mapper/BaseOrderMapper.xml
+15
-42
No files found.
xx-order/xx-order-api/src/main/java/com/xxfc/platform/order/pojo/bg/BgOrderListVo.java
View file @
bae1d847
...
@@ -41,4 +41,7 @@ public class BgOrderListVo {
...
@@ -41,4 +41,7 @@ public class BgOrderListVo {
private
Integer
vehicleCode
;
private
Integer
vehicleCode
;
private
Integer
userId
;
private
Integer
userId
;
//员工身份
private
String
positionName
;
}
}
xx-order/xx-order-server/src/main/resources/mapper/BaseOrderMapper.xml
View file @
bae1d847
...
@@ -241,85 +241,58 @@
...
@@ -241,85 +241,58 @@
</select>
</select>
<select
id=
"getAllOrderList"
parameterType=
"Map"
resultType=
"com.xxfc.platform.order.pojo.bg.BgOrderListVo"
>
<select
id=
"getAllOrderList"
parameterType=
"Map"
resultType=
"com.xxfc.platform.order.pojo.bg.BgOrderListVo"
>
SELECT
SELECT * from order_list_info
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
<where>
<where>
<if
test=
"userIds != null and userIds.size() > 0"
>
<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=
")"
>
<foreach
collection=
"userIds"
item=
"item"
open=
"("
separator=
","
close=
")"
>
#{item}
#{item}
</foreach>
</foreach>
</if>
</if>
<if
test=
"phone != null and phone != ''"
>
<if
test=
"phone != null and phone != ''"
>
and
a2.usernam
e like CONCAT ("%", #{phone}, "%")
and
telephon
e like CONCAT ("%", #{phone}, "%")
</if>
</if>
<if
test=
"realName != null and realName != ''"
>
<if
test=
"realName != null and realName != ''"
>
and
a1.
name like CONCAT ("%", #{realName}, "%")
and
user
name like CONCAT ("%", #{realName}, "%")
</if>
</if>
<if
test=
"userId != null"
>
<if
test=
"userId != null"
>
and
b1.user_i
d = #{userId}
and
userI
d = #{userId}
</if>
</if>
<if
test=
"status != null"
>
<if
test=
"status != null"
>
and
b1.
status = #{status}
and status = #{status}
</if>
</if>
<if
test=
"type != null"
>
<if
test=
"type != null"
>
and
b1.
type = #{type}
and type = #{type}
</if>
</if>
<if
test=
"no != null and no != '' "
>
<if
test=
"no != null and no != '' "
>
and
b1.n
o like CONCAT ("%", #{no}, "%")
and
orderN
o like CONCAT ("%", #{no}, "%")
</if>
</if>
<if
test=
"plateNumber != null and plateNumber != '' "
>
<if
test=
"plateNumber != null and plateNumber != '' "
>
and
v1.number_p
late like CONCAT ("%", #{plateNumber}, "%")
and
numberP
late like CONCAT ("%", #{plateNumber}, "%")
</if>
</if>
<if
test=
"vehicleCode != null"
>
<if
test=
"vehicleCode != null"
>
and v
1.c
ode = #{vehicleCode}
and v
ehicleC
ode = #{vehicleCode}
</if>
</if>
<if
test=
"startTime != null"
>
<if
test=
"startTime != null"
>
and
o1.start_t
ime between #{startTime} and #{endTime}
and
startT
ime between #{startTime} and #{endTime}
</if>
</if>
<if
test=
"companyIds != null and companyIds.size > 0"
>
<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=
")"
>
<foreach
collection=
"companyIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
#{id}
</foreach>
</foreach>
or
or
o1.end_company_i
d in
endCompanyI
d in
<foreach
collection=
"companyIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
<foreach
collection=
"companyIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
#{id}
</foreach>
</foreach>
)
)
</if>
</if>
<if
test=
"zoneId != null"
>
<if
test=
"zoneId != null"
>
and (
bc1.zone_id = #{zoneId} or bc2.zone_i
d = #{zoneId})
and (
startZoneId = #{zoneId} or endZoneI
d = #{zoneId})
</if>
</if>
</where>
</where>
order by
b1.crt_t
ime desc
order by
crtT
ime 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