mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 03:25:12 +08:00
update 计算退款金额
This commit is contained in:
@@ -437,9 +437,9 @@ public abstract class AbstractOrderLogic implements InitializingBean {
|
||||
map.put("unfreezeAmount", unfreezeAmount);
|
||||
resultList.add(map);
|
||||
} else {
|
||||
BigDecimal refundPerPayment = tempAmount.min(payAmount);
|
||||
unfreezeAmount = payAmount.subtract(refundPerPayment);
|
||||
tempAmount = tempAmount.subtract(refundPerPayment);
|
||||
BigDecimal min = tempAmount.min(payAmount);
|
||||
unfreezeAmount = payAmount.subtract(min);
|
||||
tempAmount = tempAmount.subtract(min);
|
||||
Map<String, Object> map = Maps.newHashMap();
|
||||
map.put("paymentId", paymentId);
|
||||
map.put("unfreezeAmount", unfreezeAmount);
|
||||
|
||||
Reference in New Issue
Block a user