|
|
@ -268,11 +268,11 @@ public class GenBasicServiceImpl extends ServiceImpl<GenBasicMapper, GenBasic> i
|
|
|
|
DatabaseMetaData metaData = conn.getMetaData();
|
|
|
|
DatabaseMetaData metaData = conn.getMetaData();
|
|
|
|
String url = metaData.getURL();
|
|
|
|
String url = metaData.getURL();
|
|
|
|
String schema = null;
|
|
|
|
String schema = null;
|
|
|
|
if (url.toLowerCase().contains("oracle")) {
|
|
|
|
if (url.toLowerCase().contains("jdbc:oracle")) {
|
|
|
|
schema = metaData.getUserName();
|
|
|
|
schema = metaData.getUserName();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
List<GenBasicTableResult> tables = new ArrayList<>();
|
|
|
|
List<GenBasicTableResult> tables = new ArrayList<>();
|
|
|
|
rs = metaData.getTables(null, schema, "%", new String[]{"TABLE", "VIEW"});
|
|
|
|
rs = metaData.getTables(null, schema, "%", new String[]{"TABLE"});
|
|
|
|
while (rs.next()) {
|
|
|
|
while (rs.next()) {
|
|
|
|
String tableName = rs.getString("TABLE_NAME");
|
|
|
|
String tableName = rs.getString("TABLE_NAME");
|
|
|
|
if (!StrUtil.startWithIgnoreCase(tableName, "ACT_")) {
|
|
|
|
if (!StrUtil.startWithIgnoreCase(tableName, "ACT_")) {
|
|
|
|