mirror of
https://github.com/dataease/dataease.git
synced 2026-05-16 22:41:06 +08:00
Merge pull request #12692 from ulleo/dev-v2
fix(X-Pack): 修复使用内建数据库的数据填报不能正常获取数据源连接的问题
This commit is contained in:
@@ -488,6 +488,15 @@ public class DatasourceServer implements DatasourceApi {
|
||||
return getDatasourceDTOById(datasourceId, false);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getName(Long datasourceId) throws DEException {
|
||||
CoreDatasource datasource = datasourceMapper.selectById(datasourceId);
|
||||
if (datasource == null) {
|
||||
DEException.throwException("不存在的数据源!");
|
||||
}
|
||||
return datasource.getName();
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<DatasourceDTO> innerList(List<Long> ids, List<String> types) throws DEException {
|
||||
List<DatasourceDTO> list = new ArrayList<>();
|
||||
|
||||
2
de-xpack
2
de-xpack
Submodule de-xpack updated: 0f366f1a1d...9e045fdd0b
@@ -150,6 +150,8 @@ public interface DatasourceApi {
|
||||
|
||||
DatasourceDTO innerGet(Long datasourceId) throws DEException;
|
||||
|
||||
String getName(Long datasourceId) throws DEException;
|
||||
|
||||
List<DatasourceDTO> innerList(List<Long> ids, List<String> types) throws DEException;
|
||||
|
||||
}
|
||||
|
||||
@@ -47,6 +47,8 @@ public class DataFillingDTO implements Serializable {
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
private Long datasource;
|
||||
|
||||
private String datasourceName;
|
||||
|
||||
/**
|
||||
* 表单内容
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user