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
c7c96d0b
Commit
c7c96d0b
authored
Aug 02, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改支付宝支付方式
parent
4adc7d46
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
19 deletions
+7
-19
BaseOrderController.java
...ava/com/xxfc/platform/order/rest/BaseOrderController.java
+1
-1
BaseOrderMapper.xml
...rder-server/src/main/resources/mapper/BaseOrderMapper.xml
+2
-2
BranchCompanyBiz.java
.../java/com/xxfc/platform/vehicle/biz/BranchCompanyBiz.java
+1
-1
BranchCompanyMapper.xml
...-server/src/main/resources/mapper/BranchCompanyMapper.xml
+1
-1
VehicleBookRecordMapper.xml
...ver/src/main/resources/mapper/VehicleBookRecordMapper.xml
+2
-14
No files found.
xx-order/xx-order-server/src/main/java/com/xxfc/platform/order/rest/BaseOrderController.java
View file @
c7c96d0b
...
...
@@ -192,7 +192,7 @@ public class BaseOrderController extends CommonBaseController implements UserRes
List
<
Integer
>
userIds
=
list
.
stream
().
map
(
OrderListVo:
:
getUserId
).
distinct
().
collect
(
Collectors
.
toList
());
if
(
userIds
!=
null
&&
userIds
.
size
()
>
0
)
{
ObjectRestResponse
<
List
<
AppUserVo
>>
objectRestResponse
=
userFeign
.
getByUserIds
(
userIds
);
log
.
info
(
"获取用户信息:objectRestResponse = {}"
,
objectRestResponse
.
get
Message
());
log
.
info
(
"获取用户信息:objectRestResponse = {}"
,
objectRestResponse
.
get
Data
());
Map
<
String
,
AppUserVo
>
appUserVoMap
=
objectRestResponse
.
getData
()
==
null
?
new
HashMap
<
String
,
AppUserVo
>()
:
objectRestResponse
.
getData
().
parallelStream
().
collect
(
Collectors
.
toMap
(
v
->
v
.
getUserid
().
toString
(),
v
->
v
));
...
...
xx-order/xx-order-server/src/main/resources/mapper/BaseOrderMapper.xml
View file @
c7c96d0b
...
...
@@ -138,7 +138,7 @@
and (r.start_time between #{startTime} and #{endTime}
or t.start_time between #{startTime} and #{endTime})
</if>
<if
test=
"companyIds != null"
>
<if
test=
"companyIds != null
and companyIds.size > 0
"
>
and (r.start_company_id in
<foreach
collection=
"companyIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
...
...
@@ -149,7 +149,7 @@
</foreach>
)
</if>
<if
test=
"zoneIds != null"
>
<if
test=
"zoneIds != null
and zoneIds.size > 0
"
>
and (r.start_zone_id in
<foreach
collection=
"zoneIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
...
...
xx-vehicle/xx-vehicle-server/src/main/java/com/xxfc/platform/vehicle/biz/BranchCompanyBiz.java
View file @
c7c96d0b
...
...
@@ -95,7 +95,7 @@ public class BranchCompanyBiz extends BaseBiz<BranchCompanyMapper, BranchCompany
map
.
put
(
"zoneId"
,
zoneId
);
List
<
Integer
>
branchCompanies
=
Lists
.
newArrayList
();
if
(
DATA_ALL_FALSE
.
equals
(
userDTO
.
getDataAll
()))
{
//不能获取全部数据
branchCompanies
=
vehicleBiz
.
dataCompany
(
userDTO
.
getData
Company
(),
userDTO
.
getDataZone
());
branchCompanies
=
vehicleBiz
.
dataCompany
(
userDTO
.
getData
Zone
(),
userDTO
.
getDataCompany
());
}
map
.
put
(
"ids"
,
branchCompanies
);
return
mapper
.
selectByZoneId
(
map
);
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/BranchCompanyMapper.xml
View file @
c7c96d0b
...
...
@@ -42,7 +42,7 @@
<select
id=
"selectByZoneId"
parameterType=
"java.util.Map"
resultType=
"com.xxfc.platform.vehicle.entity.BranchCompany"
>
select * from branch_company
where zone_id = #{zoneId}
<if
test=
"ids != null"
>
<if
test=
"ids != null
and ids > 0
"
>
and id in
<foreach
collection=
"ids"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
...
...
xx-vehicle/xx-vehicle-server/src/main/resources/mapper/VehicleBookRecordMapper.xml
View file @
c7c96d0b
...
...
@@ -395,19 +395,13 @@
<if
test=
"bookType != null"
>
and v1.book_type = #{bookType}
</if>
<if
test=
"companyIds != null"
>
<if
test=
"companyIds != null
and companyIds > 0
"
>
and v1.lift_company in
<foreach
collection=
"companyIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</if>
<if
test=
"zoneIds != null"
>
and bc1.zone_id in
<foreach
collection=
"zoneIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</if>
and v1.status between 1 and 2
</where>
...
...
@@ -433,7 +427,7 @@
<if
test=
"bookType != null"
>
and v1.book_type = #{bookType}
</if>
<if
test=
"companyIds != null"
>
<if
test=
"companyIds != null
and companyIds > 0
"
>
and (v1.lift_company in
<foreach
collection=
"companyIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
...
...
@@ -443,12 +437,6 @@
#{id}
</foreach>
)
</if>
<if
test=
"zoneIds != null"
>
and bc1.zone_id in
<foreach
collection=
"zoneIds"
item=
"id"
open=
"("
separator=
","
close=
")"
>
#{id}
</foreach>
</if>
<if
test=
"status != null"
>
and v1.status = #{status}
</if>
...
...
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