数据源

highway
zhaoxiaolin 1 year ago
parent 8603ea7ac2
commit 0a822359bd

@ -82,9 +82,9 @@ public class SysDatasourceServiceImpl implements ISysDatasourceService {
+mysqlAffter+sysDatasource.getIpPort().split("/")[1]); +mysqlAffter+sysDatasource.getIpPort().split("/")[1]);
} }
if(sysDatasource.getDeptId()!=null){ if(sysDatasource.getDeptId()!=null){
if(StringUtils.isNotEmpty(sysDatasource.getSystemType())){
sysDatasource.setPoolName(poolNamePrev+"_"+sysDatasource.getDeptId()); sysDatasource.setPoolName(poolNamePrev+"_"+sysDatasource.getDeptId());
}
} }
return sysDatasourceMapper.insertSysDatasource(sysDatasource); return sysDatasourceMapper.insertSysDatasource(sysDatasource);

@ -37,4 +37,4 @@ sqlserve:
driver: com.microsoft.sqlserver.jdbc.SQLServerDriver driver: com.microsoft.sqlserver.jdbc.SQLServerDriver
#数据标识前缀 #数据标识前缀
poolName: poolName:
prev: factory prev: ds

Loading…
Cancel
Save