fix: 退款优惠券为null处理
This commit is contained in:
@@ -1500,8 +1500,10 @@ public class PayService {
|
|||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
returnCoupon(orderInfo, true);
|
returnCoupon(orderInfo, true);
|
||||||
// 返还积分
|
// 返还积分
|
||||||
memberPointsService.addPoints(Long.valueOf(orderInfo.getMemberId()), orderInfo.getPointsNum(),
|
if (orderInfo.getMemberId() != null) {
|
||||||
"用户退款订单积分返还: " + orderInfo.getPointsNum() + "积分", Long.valueOf(orderInfo.getId()));
|
memberPointsService.addPoints(Long.valueOf(orderInfo.getMemberId()), orderInfo.getPointsNum(),
|
||||||
|
"用户退款订单积分返还: " + orderInfo.getPointsNum() + "积分", Long.valueOf(orderInfo.getId()));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
mPOrderInfoMapper.updateById(orderInfo);
|
mPOrderInfoMapper.updateById(orderInfo);
|
||||||
|
|||||||
Reference in New Issue
Block a user