mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
perf: 对接 SQLBot 接口提供是否固定数据源 ID 的配置项
This commit is contained in:
committed by
fit2cloud-chenyw
parent
db58df32fd
commit
70ef8133f7
@@ -97,6 +97,9 @@ public class DatasetSQLBotManage {
|
||||
@Value("${dataease.sqlbot.log:false}")
|
||||
private boolean sqlbotApiLog;
|
||||
|
||||
@Value("${dataease.sqlbot.ds-id-fixed:false}")
|
||||
private boolean dsIdFixed;
|
||||
|
||||
@Resource
|
||||
private ExtChartViewMapper extChartViewMapper;
|
||||
|
||||
@@ -546,6 +549,9 @@ public class DatasetSQLBotManage {
|
||||
vo.setSchema(config.getSchema());
|
||||
vo.setUser(config.getUsername());
|
||||
vo.setPassword(config.getPassword());
|
||||
if (dsIdFixed) {
|
||||
vo.setId(Long.parseLong(row.get("cd_id").toString()));
|
||||
}
|
||||
row.put("cd_configuration", config_json);
|
||||
Map<String, Object> rowData = buildRowData(row, 0);
|
||||
rowData.put("id", Long.parseLong(row.get("cd_id").toString()));
|
||||
|
||||
Reference in New Issue
Block a user