This commit is contained in:
robin
2023-07-02 11:23:33 +08:00
parent 6c250f4436
commit 5138cdb593
2 changed files with 1 additions and 2 deletions

View File

@ -60,7 +60,7 @@ public class ConnectionInfoHandler {
public ConnectInfo toInfo(Long dataSourceId, String database, Long consoleId) {
DataResult<DataSource> result = dataSourceService.queryById(dataSourceId);
DataSource dataSource = result.getData();
if (!result.success() && dataSource == null) {
if (!result.success() || dataSource == null) {
throw new ParamBusinessException("dataSourceId");
}
ConnectInfo connectInfo = new ConnectInfo();

View File

@ -27,7 +27,6 @@ public class TableBriefQueryRequest extends PageQueryRequest implements DataSour
/**
* DB名称
*/
@NotNull
private String databaseName;
/**