多并发加锁解锁
//解锁
public boolean unLock() {
con = DBConnPool.getConnection();
if (con == null) {
// @@错误处理
CError.buildErr(this, "数据库连接失败!");
return false;
}
// 设置为非自动提交
try {
con.setAutoCommit(false);
if (!pareUnLockData(con)) {
con.roll
原创
2021-07-27 09:11:35 ·
153 阅读 ·
0 评论