|
@@ -299,19 +299,19 @@ public class TableInfoServiceImpl implements ITableInfoService {
|
|
|
// DataSource dataSource = JSON.parseObject(redisTemplate.opsForValue().get("DataSource").toString(),DataSource.class);
|
|
|
if (databaseType.equals(DataSourceType.MYSQL.getDataSourceName())) {
|
|
|
if (tableInfoMapper.selectDataCount(tableName) > 0) {
|
|
|
- return AjaxResult.warn("表中有数据,不能删除!");
|
|
|
+ return AjaxResult.warn("表中有数据,不能修改!");
|
|
|
}
|
|
|
updateMysqlTable(map);
|
|
|
return AjaxResult.success();
|
|
|
} else if (databaseType.equals(DataSourceType.SQLSERVER.getDataSourceName())) {
|
|
|
if (tableInfoMapper.selectSqlServerDataCount(tableName) > 0) {
|
|
|
- return AjaxResult.warn("表中有数据,不能删除!");
|
|
|
+ return AjaxResult.warn("表中有数据,不能修改!");
|
|
|
}
|
|
|
updateSqlserverTable(map);
|
|
|
return AjaxResult.success();
|
|
|
} else if (databaseType.equals(DataSourceType.DM.getDataSourceName())) {
|
|
|
if (tableInfoMapper.selectDmDataCount(tableName) > 0) {
|
|
|
- return AjaxResult.warn("表中有数据,不能删除!");
|
|
|
+ return AjaxResult.warn("表中有数据,不能修改!");
|
|
|
}
|
|
|
map.put("dataBaseName", dataBaseName);
|
|
|
updateDmTable(map);
|
|
@@ -319,7 +319,7 @@ public class TableInfoServiceImpl implements ITableInfoService {
|
|
|
}
|
|
|
// }
|
|
|
if (tableInfoMapper.selectDataCount(tableName) > 0) {
|
|
|
- return AjaxResult.warn("表中有数据,不能删除!");
|
|
|
+ return AjaxResult.warn("表中有数据,不能修改!");
|
|
|
}
|
|
|
updateMysqlTable(map);
|
|
|
return AjaxResult.success();
|