mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-08 09:38:26 +08:00
commit
1095d69155
@ -82,8 +82,9 @@ public class MapperInvocationHandler implements InvocationHandler {
|
|||||||
dbType = dbTypeGlobal ;
|
dbType = dbTypeGlobal ;
|
||||||
}
|
}
|
||||||
if (dbType == null) {
|
if (dbType == null) {
|
||||||
if (dataSourceKey != null && dataSource != null) {
|
if (shardingDataSourceKey != null && dataSource != null) {
|
||||||
dbType = dataSource.getDbType(dataSourceKey);
|
//使用最终分片获取数据源类型
|
||||||
|
dbType = dataSource.getDbType(shardingDataSourceKey);
|
||||||
}
|
}
|
||||||
if (dbType == null) {
|
if (dbType == null) {
|
||||||
dbType = FlexGlobalConfig.getDefaultConfig().getDbType();
|
dbType = FlexGlobalConfig.getDefaultConfig().getDbType();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user