fine:()修改代码
parent
6f8c1dce48
commit
a4b375138f
|
@ -37,4 +37,8 @@ public class TableNames {
|
|||
*/
|
||||
private Integer dataId;
|
||||
|
||||
public TableNames(String name, Integer dataId) {
|
||||
this.name = name;
|
||||
this.dataId = dataId;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -41,11 +41,10 @@ public class TableRunNameServiceImpl
|
|||
// 在这里执行你的数据库操作
|
||||
PreparedStatement preparedStatement = conn.prepareStatement(sql);
|
||||
ResultSet rs = preparedStatement.executeQuery();
|
||||
TableNames tableNames = new TableNames();
|
||||
ArrayList<TableNames> list = new ArrayList<>();
|
||||
while (rs.next()) {
|
||||
String tables = rs.getString("Tables_in_core_data_warehouse");
|
||||
list.add(new TableNames(0,tables,0));
|
||||
list.add(new TableNames(tables,0));
|
||||
}
|
||||
JdbcHelper.close(conn,preparedStatement,rs);
|
||||
|
||||
|
|
Loading…
Reference in New Issue