Browse Source

【优化】优化部分数据库选择后,查不到字段列表的问题

pull/220/MERGE
xuyuxiang 6 months ago
parent
commit
2c80091940
  1. 3
      snowy-plugin/snowy-plugin-gen/src/main/java/vip/xiaonuo/gen/modular/basic/service/impl/GenBasicServiceImpl.java

3
snowy-plugin/snowy-plugin-gen/src/main/java/vip/xiaonuo/gen/modular/basic/service/impl/GenBasicServiceImpl.java

@ -329,6 +329,9 @@ public class GenBasicServiceImpl extends ServiceImpl<GenBasicMapper, GenBasic> i
}
List<GenBasicTableColumnResult> columns = new ArrayList<>();
rs = metaData.getColumns(null, schema, genBasicTableColumnParam.getTableName(), "%");
if(!rs.next()) {
rs = metaData.getColumns(null, schema, genBasicTableColumnParam.getTableName().toLowerCase(), "%");
}
while (rs.next()) {
String columnName = rs.getString("COLUMN_NAME").toUpperCase();
GenBasicTableColumnResult genBasicTableColumnResult = new GenBasicTableColumnResult();

Loading…
Cancel
Save