修改事务断开
This commit is contained in:
parent
2d8f404a4f
commit
4e32676d7e
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user