Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-enterprise
Overview
Overview
Details
Activity
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
base_platform_enterprise
gic-platform-enterprise
Commits
971cd65d
Commit
971cd65d
authored
Apr 29, 2020
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
toMap key重复处理
parent
de33fca7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
BillingPayInfoController.java
...c/enterprise/web/controller/BillingPayInfoController.java
+3
-2
No files found.
gic-platform-enterprise-web/src/main/java/com/gic/enterprise/web/controller/BillingPayInfoController.java
View file @
971cd65d
...
...
@@ -11,6 +11,7 @@ import com.gic.api.base.commons.Page;
import
com.gic.commons.util.EntityUtil
;
import
com.gic.enterprise.dto.BillingPayInfoDTO
;
import
com.gic.enterprise.utils.UserDetail
;
import
com.gic.finance.constant.TransferAccountApprovalStatusEnum
;
import
com.gic.finance.dto.TransferAccountsApprovalDTO
;
import
com.gic.finance.service.TransferAccountsApprovalApiService
;
import
org.apache.commons.collections.CollectionUtils
;
...
...
@@ -101,8 +102,8 @@ public class BillingPayInfoController {
ServiceResponse
<
List
<
TransferAccountsApprovalDTO
>>
approvalResponse
=
transferAccountsApprovalApiService
.
listByOrderSerialNumber
(
orderSerialNumberList
);
if
(
approvalResponse
.
isSuccess
())
{
badMoneyMap
=
approvalResponse
.
getResult
().
stream
().
filter
(
e
->
e
!=
null
)
.
collect
(
Collectors
.
toMap
(
TransferAccountsApprovalDTO:
:
getOrderNumber
,
TransferAccountsApprovalDTO:
:
getBadAmount
,
(
oldValue
,
newValue
)
->
newValue
));
badMoneyMap
=
approvalResponse
.
getResult
().
stream
().
filter
(
e
->
e
.
getApprovalStatus
()
==
TransferAccountApprovalStatusEnum
.
AGREE
.
getCode
()
)
.
collect
(
Collectors
.
toMap
(
e
->
e
.
getOrderNumber
(),
e
->
e
.
getBadAmount
()
,
(
oldValue
,
newValue
)
->
newValue
));
}
else
{
badMoneyMap
=
new
HashMap
<>(
2
);
}
...
...
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