refactor: 对接SQLBot接口增加oracle连接模式

This commit is contained in:
junjun
2026-02-04 13:54:28 +08:00
committed by Junjun
parent 2cbaf25fdb
commit 798a7d5252

View File

@@ -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,10 @@ public class DatasetSQLBotManage {
vo.setSchema(config.getSchema());
vo.setUser(config.getUsername());
vo.setPassword(config.getPassword());
vo.setMode(config.getConnectionType());
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()));