Commit c9a3c653 by 咸鱼

fix npe exception

parent 84bfc460
......@@ -24,7 +24,7 @@ public class V2CancelOrderRequestAdapter {
}
req.setOrderCode(order.getOrderCode());
req.setReqAmount(new BigDecimal(refundAmount));
req.setReqAmount(refundAmount != null ? new BigDecimal(refundAmount) : null);
req.setOrderClient(order.getOrderClient().byteValue());
req.setOperationClient(OperationClientEnum.STATE_5.getIndex().byteValue());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment