diff --git a/op-modules/op-system/src/main/java/com/op/system/service/impl/SysDatasourceServiceImpl.java b/op-modules/op-system/src/main/java/com/op/system/service/impl/SysDatasourceServiceImpl.java index f200003d..36ab9138 100644 --- a/op-modules/op-system/src/main/java/com/op/system/service/impl/SysDatasourceServiceImpl.java +++ b/op-modules/op-system/src/main/java/com/op/system/service/impl/SysDatasourceServiceImpl.java @@ -82,9 +82,9 @@ public class SysDatasourceServiceImpl implements ISysDatasourceService { +mysqlAffter+sysDatasource.getIpPort().split("/")[1]); } if(sysDatasource.getDeptId()!=null){ - if(StringUtils.isNotEmpty(sysDatasource.getSystemType())){ + sysDatasource.setPoolName(poolNamePrev+"_"+sysDatasource.getDeptId()); - } + } return sysDatasourceMapper.insertSysDatasource(sysDatasource); diff --git a/op-modules/op-system/src/main/resources/bootstrap.yml b/op-modules/op-system/src/main/resources/bootstrap.yml index fe34e4c4..fee75e91 100644 --- a/op-modules/op-system/src/main/resources/bootstrap.yml +++ b/op-modules/op-system/src/main/resources/bootstrap.yml @@ -37,4 +37,4 @@ sqlserve: driver: com.microsoft.sqlserver.jdbc.SQLServerDriver #数据标识前缀 poolName: - prev: factory + prev: ds