mirror of
https://gitee.com/mybatis-flex/mybatis-flex.git
synced 2025-12-07 09:08:24 +08:00
fix I937IA
This commit is contained in:
parent
c155bcafeb
commit
4071be741c
@ -83,7 +83,8 @@ public class MapperInvocationHandler implements InvocationHandler {
|
||||
}
|
||||
if (dbType == null) {
|
||||
if (dataSourceKey != null && dataSource != null) {
|
||||
dbType = dataSource.getDbType(dataSourceKey);
|
||||
//使用最终分片获取数据源类型
|
||||
dbType = dataSource.getDbType(shardingDataSourceKey);
|
||||
}
|
||||
if (dbType == null) {
|
||||
dbType = FlexGlobalConfig.getDefaultConfig().getDbType();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user