Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
order-group
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
order-group-application
order-group
Commits
c3efd2eb
Commit
c3efd2eb
authored
Aug 10, 2022
by
ping.wu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
isRefundDeliveryFee 退款是否退配送费已在申请退款传到订单基础服务,取订单售后单中退款金额 actualAmount
parent
8c2e2376
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
11 deletions
+12
-11
order-management/src/main/java/cn/freemud/management/service/handle/OrderVerifyHandle.java
+12
-11
No files found.
order-management/src/main/java/cn/freemud/management/service/handle/OrderVerifyHandle.java
View file @
c3efd2eb
...
@@ -650,21 +650,22 @@ public class OrderVerifyHandle {
...
@@ -650,21 +650,22 @@ public class OrderVerifyHandle {
/**
/**
* 获取已完成订单退款金额
* 获取已完成订单退款金额
* isRefundDeliveryFee 退款是否退配送费已在申请退款传到订单基础服务,取订单售后单中退款金额 actualAmount
*/
*/
public
BigDecimal
getRefundAmount
(
OrderBeanV1
data
,
boolean
isRefundDeliveryFee
)
{
public
BigDecimal
getRefundAmount
(
OrderBeanV1
data
,
boolean
isRefundDeliveryFee
)
{
//是否配置已完成订单可退款
//是否配置已完成订单可退款
BigDecimal
refundAmount
=
new
BigDecimal
(
data
.
getAmount
());
BigDecimal
refundAmount
=
new
BigDecimal
(
data
.
getAmount
());
if
(
isRefundDeliveryFee
||
isPayBySVC
(
data
)){
//
if (isRefundDeliveryFee || isPayBySVC(data)){
return
refundAmount
;
//
return refundAmount;
}
//
}
List
<
AccountBeanV1
>
accountList
=
data
.
getAccountList
();
//
List<AccountBeanV1> accountList = data.getAccountList();
if
(
CollectionUtils
.
isNotEmpty
(
accountList
))
{
//
if (CollectionUtils.isNotEmpty(accountList)) {
for
(
AccountBeanV1
orderCostResp
:
accountList
)
{
//
for (AccountBeanV1 orderCostResp : accountList) {
if
(
orderCostResp
.
getType
()
==
OldOrderAccountType
.
DELIVERY_AMOUNT
.
getCode
())
{
//
if (orderCostResp.getType() == OldOrderAccountType.DELIVERY_AMOUNT.getCode()) {
refundAmount
=
new
BigDecimal
(
data
.
getAmount
().
intValue
()
-
orderCostResp
.
getPrice
());
//
refundAmount = new BigDecimal(data.getAmount().intValue() - orderCostResp.getPrice());
}
//
}
}
//
}
}
//
}
return
refundAmount
;
return
refundAmount
;
}
}
/**
/**
...
...
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