退款空指针处理
This commit is contained in:
parent
6ffa6d1af4
commit
e3d554da42
@ -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() // 如果都售后成功,则需要取消订单
|
||||||
|
Loading…
Reference in New Issue
Block a user