wuxw7
2018-11-25 d7717df0f80aac77eec9ba0345ea7f4487143f75
java110-service/src/main/java/com/java110/service/dao/impl/QueryServiceDAOImpl.java
@@ -44,7 +44,7 @@
            while(rs.next()){
                Map<String,Object> map = new HashMap<String,Object>();
                for(int i = 0 ; i < rsmd.getColumnCount() ; i++){
                    String col_name = rsmd.getColumnName(i+1);
                    String col_name = rsmd.getColumnLabel(i+1);
                    Object col_value = rs.getObject(col_name);
                    if(col_value == null){
                        col_value = "";
@@ -60,8 +60,12 @@
        }finally{
            try {
                //conn.close();
                ps.close();
                rs.close();
                if( ps!=null) {
                    ps.close();
                }
                if(rs != null) {
                    rs.close();
                }
            } catch (SQLException e) {
                e.printStackTrace();
            }