退款空指针处理

This commit is contained in:
XinWei 2024-10-17 16:30:07 +08:00
parent 6ffa6d1af4
commit e3d554da42

View File

@ -906,6 +906,9 @@ public class TradeOrderUpdateServiceImpl implements TradeOrderUpdateService {
// 2.1 更新订单的退款金额积分 // 2.1 更新订单的退款金额积分
Integer orderRefundPrice = order.getRefundPrice() + refundPrice; Integer orderRefundPrice = order.getRefundPrice() + refundPrice;
if (order.getRefundPoint() == null){
order.setRefundPoint(0);
}
Integer orderRefundPoint = order.getRefundPoint() + orderItem.getUsePoint(); Integer orderRefundPoint = order.getRefundPoint() + orderItem.getUsePoint();
Integer refundStatus = isAllOrderItemAfterSaleSuccess(order.getId()) ? Integer refundStatus = isAllOrderItemAfterSaleSuccess(order.getId()) ?
TradeOrderRefundStatusEnum.ALL.getStatus() // 如果都售后成功则需要取消订单 TradeOrderRefundStatusEnum.ALL.getStatus() // 如果都售后成功则需要取消订单