|
@@ -133,6 +133,11 @@ public class TableInfoServiceImpl implements ITableInfoService {
|
|
|
String databaseType = (String) map.get("databaseType");
|
|
|
String databaseName = (String) map.get("databaseName");
|
|
|
String username = (String) map.get("username");
|
|
|
+
|
|
|
+ if(!StringUtils.hasLength(databaseType)){
|
|
|
+ return AjaxResult.error("当前用户没有数据源,无法查看该页面");
|
|
|
+ }
|
|
|
+
|
|
|
//获取数据源信息
|
|
|
// if(redisTemplate.hasKey("DataSource")){
|
|
|
// DataSource dataSource =JSON.parseObject(redisTemplate.opsForValue().get("DataSource").toString(),DataSource.class);
|