其它系统数据源打开

master
zhaoxiaolin 9 months ago
parent a22bf0ea9c
commit 387b28bae2

@ -146,22 +146,22 @@ public class SysDatasourceServiceImpl implements ISysDatasourceService {
DataSourcePropertyDTO dataSourceProperty = new DataSourcePropertyDTO(); DataSourcePropertyDTO dataSourceProperty = new DataSourcePropertyDTO();
dataSourceProperty.setPoolName(sysDatasource.getPoolName()); dataSourceProperty.setPoolName(sysDatasource.getPoolName());
dynamicRoutingDataSource.removeDataSource(sysDatasource.getPoolName()); dynamicRoutingDataSource.removeDataSource(sysDatasource.getPoolName());
// //计划删除数据源 //计划删除数据源
// remotePlanService.removeDatasource(dataSourceProperty); remotePlanService.removeDatasource(dataSourceProperty);
//质量删除数据源 //质量删除数据源
remoteQualityService.removeDatasource(dataSourceProperty); remoteQualityService.removeDatasource(dataSourceProperty);
// //mes删除数据源 //mes删除数据源
// remoteMesService.removeDatasource(dataSourceProperty); remoteMesService.removeDatasource(dataSourceProperty);
//wms删除数据源 //wms删除数据源
remoteWmsService.removeDatasource(dataSourceProperty); remoteWmsService.removeDatasource(dataSourceProperty);
// //device删除数据源 //device删除数据源
// remoteDeviceService.removeDatasource(dataSourceProperty); remoteDeviceService.removeDatasource(dataSourceProperty);
// //open删除数据源 //open删除数据源
// remoteOpenService.removeDatasource(dataSourceProperty); remoteOpenService.removeDatasource(dataSourceProperty);
// //sap删除数据源 //sap删除数据源
// remoteSapService.removeDatasource(dataSourceProperty); remoteSapService.removeDatasource(dataSourceProperty);
// //工艺删除数据源 //工艺删除数据源
// remoteTechnologyService.removeDatasource(dataSourceProperty); remoteTechnologyService.removeDatasource(dataSourceProperty);
} }
sysDatasourceMapper.deleteSysDatasourceByIds(ids); sysDatasourceMapper.deleteSysDatasourceByIds(ids);
sysDatasourceMapper.deleteUserByIds(ids); sysDatasourceMapper.deleteUserByIds(ids);
@ -267,21 +267,21 @@ public class SysDatasourceServiceImpl implements ISysDatasourceService {
DataSourcePropertyDTO dto = new DataSourcePropertyDTO(); DataSourcePropertyDTO dto = new DataSourcePropertyDTO();
BeanUtils.copyProperties(dataSourceProperty,dto); BeanUtils.copyProperties(dataSourceProperty,dto);
//计划加入数据源 //计划加入数据源
// remotePlanService.addDatasource(dto); remotePlanService.addDatasource(dto);
//质量加入数据源 //质量加入数据源
remoteQualityService.addDatasource(dto); remoteQualityService.addDatasource(dto);
// //mes加入数据源 //mes加入数据源
// remoteMesService.addDatasource(dto); remoteMesService.addDatasource(dto);
//wms加入数据源 //wms加入数据源
remoteWmsService.addDatasource(dto); remoteWmsService.addDatasource(dto);
// //device加入数据源 //device加入数据源
// remoteDeviceService.addDatasource(dto); remoteDeviceService.addDatasource(dto);
// //open加入数据源 //open加入数据源
// remoteOpenService.addDatasource(dto); remoteOpenService.addDatasource(dto);
// //sap加入数据源 //sap加入数据源
// remoteSapService.addDatasource(dto); remoteSapService.addDatasource(dto);
// //工艺加入数据源 //工艺加入数据源
// remoteTechnologyService.addDatasource(dto); remoteTechnologyService.addDatasource(dto);
return "数据库链接测试成功,数据库链接状态正常"; return "数据库链接测试成功,数据库链接状态正常";
} catch (ClassNotFoundException | SQLException classNotFoundException) { } catch (ClassNotFoundException | SQLException classNotFoundException) {

Loading…
Cancel
Save