mirror of
https://github.com/CodePhiliaX/Chat2DB.git
synced 2025-09-26 16:44:13 +08:00
bugfix
This commit is contained in:
@ -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();
|
||||
|
@ -27,7 +27,6 @@ public class TableBriefQueryRequest extends PageQueryRequest implements DataSour
|
||||
/**
|
||||
* DB名称
|
||||
*/
|
||||
@NotNull
|
||||
private String databaseName;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user