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