【7.1.6】更新CustomDatabaseIdProvider的返回code

pull/23/head
fengshuonan 2021-11-29 11:14:47 +08:00
parent 95fb290e11
commit d4e0a363e2
1 changed files with 6 additions and 6 deletions

View File

@ -66,26 +66,26 @@ public class CustomDatabaseIdProvider implements DatabaseIdProvider {
} catch (Exception e2) { } catch (Exception e2) {
log.warn("CustomDatabaseIdProvider无法判断当前数据源类型默认选择Mysql类型"); log.warn("CustomDatabaseIdProvider无法判断当前数据源类型默认选择Mysql类型");
return DbTypeEnum.MYSQL.getUrlWords(); return DbTypeEnum.MYSQL.getXmlDatabaseId();
} }
} }
// 达梦和oracle使用同一种 // 达梦和oracle使用同一种
if (url.contains(DbTypeEnum.ORACLE.getUrlWords())) { if (url.contains(DbTypeEnum.ORACLE.getUrlWords())) {
return DbTypeEnum.ORACLE.getUrlWords(); return DbTypeEnum.ORACLE.getXmlDatabaseId();
} }
if (url.contains(DbTypeEnum.DM.getUrlWords())) { if (url.contains(DbTypeEnum.DM.getUrlWords())) {
return DbTypeEnum.ORACLE.getUrlWords(); return DbTypeEnum.ORACLE.getXmlDatabaseId();
} }
if (url.contains(DbTypeEnum.MS_SQL.getUrlWords())) { if (url.contains(DbTypeEnum.MS_SQL.getUrlWords())) {
return DbTypeEnum.MS_SQL.getUrlWords(); return DbTypeEnum.MS_SQL.getXmlDatabaseId();
} }
if (url.contains(DbTypeEnum.PG_SQL.getUrlWords())) { if (url.contains(DbTypeEnum.PG_SQL.getUrlWords())) {
return DbTypeEnum.PG_SQL.getUrlWords(); return DbTypeEnum.PG_SQL.getXmlDatabaseId();
} }
return DbTypeEnum.MYSQL.getUrlWords(); return DbTypeEnum.MYSQL.getXmlDatabaseId();
} }
} }