zoujiajian 1 年之前
父節點
當前提交
bc9208ebe6

+ 1 - 1
netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

@@ -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);