Joburgess 5 years ago
parent
commit
7861846ccc

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

@@ -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();
 		}