Explorar el Código

[POS][提示]:卡支付ID出错

release_toaliyun_real
Stormeye Wu hace 6 años
padre
commit
e60b87c6df
Se han modificado 1 ficheros con 7 adiciones y 2 borrados
  1. +7
    -2
      mallinkPosApi/src/main/java/com/iformall/service/impl/PosServiceImpl.java

+ 7
- 2
mallinkPosApi/src/main/java/com/iformall/service/impl/PosServiceImpl.java Ver fichero

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



Cargando…
Cancelar
Guardar