ConnectionHolder conHolder = txObject.getConnectionHolder();
if (conHolder != null && conHolder.getCurrentConnection() != null) {
Connection conInTx = conHolder.getCurrentConnection();
if (conInTx.equals(con)) {// 当前连接和事务处于同一事务,不关闭连接
conHolder.reduceCounter();
return;
}
}
// 不在同一事务中,直接关闭连接