|
|
|
@@ -2191,8 +2191,13 @@ public class PosServiceImpl implements PosService { |
|
|
|
throw new MallinkException(ErrorCode.SYS_PARAMETER_CAST_ERROR); |
|
|
|
} |
|
|
|
WxCardSpend cardSpend = cardSpendService.getById(cardSpendId); |
|
|
|
cardSpend.setOrderId(order.getId()); |
|
|
|
cardSpendService.cardSpendForPosPay(scoreCreditCalc, cardSpend, merchant, buUser); |
|
|
|
if (cardSpend != null) { |
|
|
|
cardSpend.setOrderId(order.getId()); |
|
|
|
cardSpendService.cardSpendForPosPay(scoreCreditCalc, cardSpend, merchant, buUser); |
|
|
|
} else { |
|
|
|
logger.error("卡支付ID未发现: " + cardSpendId); |
|
|
|
throw new MallinkException(ErrorCode.SYS_PARAMETER_CAST_ERROR); |
|
|
|
} |
|
|
|
return payOrder; |
|
|
|
} |
|
|
|
|
|
|
|
|