|
@@ -1,14 +1,11 @@
|
|
|
package com.ruoyi.web.controller.system;
|
|
|
|
|
|
-
|
|
|
+import com.ruoyi.common.config.Bpm.config.BpmProperties;
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
import com.ruoyi.common.core.domain.entity.DataSource;
|
|
|
-import com.ruoyi.common.utils.BpmUtils;
|
|
|
import com.ruoyi.system.entity.TableInfo;
|
|
|
import com.ruoyi.system.service.IDataSourceService;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
-
|
|
|
import javax.annotation.Resource;
|
|
|
import java.util.List;
|
|
|
import java.util.Map;
|
|
@@ -20,6 +17,9 @@ public class DataSourceController {
|
|
|
@Resource
|
|
|
private IDataSourceService dataSourceService;
|
|
|
|
|
|
+ @Resource
|
|
|
+ private BpmProperties properties;
|
|
|
+
|
|
|
|
|
|
/**
|
|
|
* 切换数据源
|
|
@@ -47,12 +47,4 @@ public class DataSourceController {
|
|
|
public List<TableInfo> queryTableInfo(@RequestBody Map<String, Object> map) {
|
|
|
return dataSourceService.tableFieldInfo(map);
|
|
|
}
|
|
|
-
|
|
|
- @Autowired
|
|
|
- BpmUtils bpmUtils;
|
|
|
-
|
|
|
- @GetMapping("/a")
|
|
|
- public String[] queryTableInfo() {
|
|
|
- return bpmUtils.getRoleKeyByUserId(1L);
|
|
|
- }
|
|
|
}
|