|
|
@@ -1682,7 +1682,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
//需要退款金额
|
|
|
BigDecimal refundMoney = dayPrice.multiply(BigDecimal.valueOf(betweenDay));
|
|
|
refundInfoResp.setPrice(refundMoney);
|
|
|
- BigDecimal balance = Optional.ofNullable(orderDon.getBalance()).orElse(BigDecimal.ZERO);
|
|
|
+ BigDecimal balance = orderDon == null ? BigDecimal.ZERO : Optional.ofNullable(orderDon.getBalance()).orElse(BigDecimal.ZERO);
|
|
|
//超过本身订单金额 不允许退款
|
|
|
if (refundMoney.compareTo(orderMoney) > 0) {
|
|
|
refundInfoResp.setIsRefund(false);
|