mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-09-27 09:03:16 +08:00
bugfix
This commit is contained in:
@ -60,7 +60,7 @@ public class ConnectionInfoHandler {
|
|||||||
public ConnectInfo toInfo(Long dataSourceId, String database, Long consoleId) {
|
public ConnectInfo toInfo(Long dataSourceId, String database, Long consoleId) {
|
||||||
DataResult<DataSource> result = dataSourceService.queryById(dataSourceId);
|
DataResult<DataSource> result = dataSourceService.queryById(dataSourceId);
|
||||||
DataSource dataSource = result.getData();
|
DataSource dataSource = result.getData();
|
||||||
if (!result.success() && dataSource == null) {
|
if (!result.success() || dataSource == null) {
|
||||||
throw new ParamBusinessException("dataSourceId");
|
throw new ParamBusinessException("dataSourceId");
|
||||||
}
|
}
|
||||||
ConnectInfo connectInfo = new ConnectInfo();
|
ConnectInfo connectInfo = new ConnectInfo();
|
||||||
|
@ -27,7 +27,6 @@ public class TableBriefQueryRequest extends PageQueryRequest implements DataSour
|
|||||||
/**
|
/**
|
||||||
* DB名称
|
* DB名称
|
||||||
*/
|
*/
|
||||||
@NotNull
|
|
||||||
private String databaseName;
|
private String databaseName;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user