| | |
| | | sql.sqlMysqlExecute("ALTER TABLE " + Sql_Mysql.A059_Station_Inf_TABLE |
| | | + " ADD COLUMN `station_type` int(11) NOT NULL DEFAULT '0' COMMENT '机房类型[0:充放电一体机;1:FBO4830]';"); |
| | | } |
| | | } catch (SQLException e) { |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } finally { |
| | | if(null != res) { |
| | |
| | | Sql_Mysql sql = new Sql_Mysql(pool.getConn()); |
| | | ResultSet res= null; |
| | | ResultSet res1= null; |
| | | try { |
| | | res = sql.sqlMysqlQuery(sql_str_sel); |
| | | StringBuffer sql_strs = new StringBuffer(" INSERT INTO " + Sql_Mysql.Station_Inf_Table + "(stationId,stationName1,stationName2,stationName3,stationName4,stationName5,stationName,nodeStation,stationType,stationLongitude,stationLatitude,stationAddr) VALUES "); |
| | | int sta_cnt = 0; |
| | | try { |
| | | while(res.next()) { |
| | | String StationId = res.getString("StationId").trim(); |
| | | String StationName = res.getString("StationName"); |
| | |
| | | //System.out.println(sql_strs.toString()); |
| | | sql.sqlMysqlExecute(sql_strs.toString()); |
| | | } |
| | | } catch (SQLException e) { |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } finally { |
| | | if(null != res) { |
| | |
| | | Sql_Mysql sql = new Sql_Mysql(pool.getConn()); |
| | | ResultSet res= null; |
| | | ResultSet res1= null; |
| | | try { |
| | | res = sql.sqlMysqlQuery(sql_str_sel); |
| | | StringBuffer sql_strs = new StringBuffer(" INSERT INTO " + Sql_Mysql.Station_Inf_Table + "(stationId,stationName1,stationName2,stationName3,stationName4,stationName5,stationName,nodeStation,stationType,stationLongitude,stationLatitude,stationAddr) VALUES "); |
| | | int sta_cnt = 0; |
| | | try { |
| | | while(res.next()) { |
| | | while(null !=res && res.next()) { |
| | | String StationId = res.getString("StationId").trim(); |
| | | String StationName = res.getString("StationName"); |
| | | String StationName1 = res.getString("StationName1"); |
| | |
| | | //System.out.println(sql_strs.toString()); |
| | | sql.sqlMysqlExecute(sql_strs.toString()); |
| | | } |
| | | } catch (SQLException e) { |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } finally { |
| | | if(null != res) { |
| | |
| | | //System.out.println("StationId:"+stationId); |
| | | flag = true; |
| | | } |
| | | } catch (SQLException e) { |
| | | } catch (Exception e) { |
| | | e.printStackTrace(); |
| | | } finally { |
| | | if(null != res2) { |