|
@@ -153,9 +153,9 @@ public abstract class BaseServiceImpl<PK extends Serializable, T> implements Bas
|
|
|
if(ps!=null){
|
|
|
ps.close();
|
|
|
}
|
|
|
-// if(connection!=null){
|
|
|
-// connection.close();
|
|
|
-// }
|
|
|
+ if(connection!=null){
|
|
|
+ connection.close();
|
|
|
+ }
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
@@ -214,9 +214,9 @@ public abstract class BaseServiceImpl<PK extends Serializable, T> implements Bas
|
|
|
if(ps!=null){
|
|
|
ps.close();
|
|
|
}
|
|
|
-// if(connection!=null){
|
|
|
-// connection.close();
|
|
|
-// }
|
|
|
+ if(connection!=null){
|
|
|
+ connection.close();
|
|
|
+ }
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|
|
@@ -245,9 +245,9 @@ public abstract class BaseServiceImpl<PK extends Serializable, T> implements Bas
|
|
|
if(ps!=null){
|
|
|
ps.close();
|
|
|
}
|
|
|
-// if(connection!=null){
|
|
|
-// connection.close();
|
|
|
-// }
|
|
|
+ if(connection!=null){
|
|
|
+ connection.close();
|
|
|
+ }
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
}
|