修改事务断开

This commit is contained in:
tangfutang 2021-03-03 14:49:50 +08:00
parent 2d8f404a4f
commit 4e32676d7e

View File

@ -80,7 +80,6 @@ public class MakeContractCheck {
}
}
}
tx.commit();
return "success" ;
} catch (Exception e) {
try {
@ -92,6 +91,15 @@ public class MakeContractCheck {
}
e.printStackTrace();
return "error" ;
}finally{
try {
if(tx != null){
tx.commit();
}
} catch (JBOException e) {
e.printStackTrace();
}
}
}