Commit 8f3b3993 by ping.wu

Merge branch 'feature/20220727_非码付接口迁移准备_wuping' of…

Merge branch 'feature/20220727_非码付接口迁移准备_wuping' of https://gitlab.freemud.com/order-group-application/order-group into qa
parents ccdbdccc 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;
} }
/** /**
......
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