// tenant data datastore url
String multi_datasource_uid = tenant.getValue("multi_datasource_uid");
// tenant config datastore url
String model_datasource_uid = tenant.getValue("model_datasource_uid");
DODataSource dataDds = dsConfig.get(multi_datasource_uid);
DODataSource dds = dsConfig.get(model_datasource_uid);
if (dataDds == null && dds == null) {
DOService findDataSource = DOService
.getService("multi_datasource_browse");
// //data datasource
BOInstance aBI = findDataSource.getInstance(multi_datasource_uid);
if (aBI != null) {
dataDds = (DODataSource) aBI.toObject(DODataSource.class);
// /现在多租户情况下默认都是mysql
dataDds.setDialect(DODataSource.DIALECT_MYSQL);
dsConfig.put(multi_datasource_uid, dataDds);
}
// /model datasource
aBI = findDataSource.getInstance(model_datasource_uid);
if (aBI != null) {
dds = (DODataSource) aBI.toObject(DODataSource.class);
// /现在多租户情况下默认都是mysql
dds.setDialect(DODataSource.DIALECT_MYSQL);
dsConfig.put(model_datasource_uid, dds);
}
}
if (dataDds == null || dds == null) {