Commit de33fca7 by guojuxing

toMap key重复处理

parent 9ba78d8f
......@@ -101,7 +101,7 @@ public class BillingPayInfoController {
ServiceResponse<List<TransferAccountsApprovalDTO>> approvalResponse = transferAccountsApprovalApiService
.listByOrderSerialNumber(orderSerialNumberList);
if (approvalResponse.isSuccess()) {
badMoneyMap = approvalResponse.getResult().stream()
badMoneyMap = approvalResponse.getResult().stream().filter(e -> e != null)
.collect(Collectors.toMap(TransferAccountsApprovalDTO::getOrderNumber, TransferAccountsApprovalDTO::getBadAmount, (oldValue,newValue) -> newValue));
} else {
badMoneyMap = new HashMap<>(2);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment