Commit d8535e58 authored by Quxl's avatar Quxl

x

parent 76a9587e
......@@ -86,7 +86,11 @@ public class SqlTestController {
while (resultSet.next()) {
Map<String, Object> rowData = new LinkedHashMap<String, Object>();
for (int i = 1; i <= columnCount; i++) {
rowData.put(md.getColumnName(i), resultSet.getObject(i));
String columnLabel = md.getColumnLabel(i);
if(StringUtil.isBlank(columnLabel)) {
columnLabel = md.getColumnName(i);
}
rowData.put(columnLabel, resultSet.getObject(i));
}
datas.add(rowData);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment