master
parent
6c420c79ab
commit
3fd4edfcd0
|
@ -206,14 +206,11 @@ public class DataRunNameServiceImpl implements DataRunNameService {
|
|||
// 从连接池获取数据库连接
|
||||
DruidDataSource conn = JdbcHelper.getConnRs(dataDame);
|
||||
// 初始化一个列表,用于存储数据值对象
|
||||
List<DataValue> list = new ArrayList<>();
|
||||
PreparedStatement preparedStatement = null;
|
||||
try {
|
||||
DruidPooledConnection connection = conn.getConnection();
|
||||
// 准备SQL查询语句
|
||||
connection.prepareStatement("select "+field+" FROM "+tableName);
|
||||
|
||||
ResultSet resultSet = preparedStatement.executeQuery();
|
||||
PreparedStatement ps = connection.prepareStatement("select " + field + " FROM " + tableName);
|
||||
ResultSet resultSet = ps.executeQuery();
|
||||
while (resultSet.next()) {
|
||||
String fields = resultSet.getString(field);
|
||||
// 返回包含数据值的列表
|
||||
|
@ -279,7 +276,7 @@ public class DataRunNameServiceImpl implements DataRunNameService {
|
|||
while (columns.next()){
|
||||
remarks = columns.getString("REMARKS");
|
||||
|
||||
log.info("字段备注:"+remarks);
|
||||
log.info("字段备注:{}", remarks);
|
||||
}
|
||||
DataValue build = DataValue.builder()
|
||||
.key(metaData.getColumnName(i))
|
||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue