diff --git a/snowy-plugin/snowy-plugin-gen/src/main/java/vip/xiaonuo/gen/modular/basic/service/impl/GenBasicServiceImpl.java b/snowy-plugin/snowy-plugin-gen/src/main/java/vip/xiaonuo/gen/modular/basic/service/impl/GenBasicServiceImpl.java index b917fedc..13cfb993 100644 --- a/snowy-plugin/snowy-plugin-gen/src/main/java/vip/xiaonuo/gen/modular/basic/service/impl/GenBasicServiceImpl.java +++ b/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 i } List 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();