|
@@ -60,6 +60,9 @@ public class SysLoginController {
|
|
|
@Value("${parameter.ip.DRAG_FORM_IP}")
|
|
|
public String DRAG_FORM_IP;
|
|
|
|
|
|
+ /**
|
|
|
+ * 流程引擎切换数据源地址接口
|
|
|
+ */
|
|
|
@Value("${parameter.ip.PROCESS_ENGINE}")
|
|
|
public String PROCESS_ENGINE;
|
|
|
|
|
@@ -107,10 +110,10 @@ public class SysLoginController {
|
|
|
//数据源信息
|
|
|
DataSource dataSource = dataSourceService.selectById(sysTenant.getDatasourceId());
|
|
|
ajax.put("dataSource", dataSource);
|
|
|
-// //调用数据引擎服务切换数据源接口
|
|
|
-// restTemplate.postForEntity(DATA_ENGINE_IP, dataSource, DataSource.class);
|
|
|
-// //调用表单引擎服务切换数据源接口
|
|
|
-// restTemplate.postForEntity(DRAG_FORM_IP, dataSource, DataSource.class);
|
|
|
+ //调用数据引擎服务切换数据源接口
|
|
|
+ restTemplate.postForEntity(DATA_ENGINE_IP, dataSource, DataSource.class);
|
|
|
+ //调用表单引擎服务切换数据源接口
|
|
|
+ restTemplate.postForEntity(DRAG_FORM_IP, dataSource, DataSource.class);
|
|
|
//调用流程引擎服务切换数据源接口
|
|
|
restTemplate.postForEntity(PROCESS_ENGINE, dataSource, DataSource.class);
|
|
|
}
|