Joburgess 5 سال پیش
والد
کامیت
b7f84903c1
1فایلهای تغییر یافته به همراه9 افزوده شده و 0 حذف شده
  1. 9 0
      edu-common/src/main/java/com/keao/edu/common/service/impl/BaseServiceImpl.java

+ 9 - 0
edu-common/src/main/java/com/keao/edu/common/service/impl/BaseServiceImpl.java

@@ -155,6 +155,9 @@ public abstract class BaseServiceImpl<PK extends Serializable, T> implements Bas
 			if(ps!=null){
 				ps.close();
 			}
+			if(null!=connection){
+				connection.close();
+			}
 			if(sqlSession!=null){
 				sqlSession.close();
 			}
@@ -217,6 +220,9 @@ public abstract class BaseServiceImpl<PK extends Serializable, T> implements Bas
 			if(ps!=null){
 				ps.close();
 			}
+			if(null!=connection){
+				connection.close();
+			}
 			if(sqlSession!=null){
 				sqlSession.close();
 			}
@@ -249,6 +255,9 @@ public abstract class BaseServiceImpl<PK extends Serializable, T> implements Bas
 			if(ps!=null){
 				ps.close();
 			}
+			if(null!=connection){
+				connection.close();
+			}
 			if(sqlSession!=null){
 				sqlSession.close();
 			}