采用枚举类型

This commit is contained in:
RuoYi
2018-08-18 23:51:19 +08:00
parent e5c9aca10f
commit 9631720a38
37 changed files with 275 additions and 233 deletions

View File

@ -21,7 +21,7 @@ public class DynamicDataSource extends AbstractRoutingDataSource
@Override
protected Object determineCurrentLookupKey()
{
return DynamicDataSourceContextHolder.getDB();
return DynamicDataSourceContextHolder.getDateSoureType();
}
}