perf: 整合 SQLBot 的数据源接口,支持带参数数据集

This commit is contained in:
fit2cloud-chenyw
2026-03-12 11:33:46 +08:00
committed by fit2cloud-chenyw
parent c8ceb28239
commit 3cfd3c00e0

View File

@@ -605,6 +605,9 @@ public class DatasetSQLBotManage {
DatasetTableInfoDTO tableInfoDTO = JsonUtil.parseObject(info, DatasetTableInfoDTO.class);
if (StringUtils.isNotBlank(tableInfoDTO.getSql())) {
String sql = new String(Base64.getDecoder().decode(tableInfoDTO.getSql()));
if (StringUtils.isNotBlank(sql) && StringUtils.contains(sql, "$DE_PARAM")) {
table.setNeedTransform(true);
}
table.setSql(sql);
}
if (StringUtils.isBlank(tableInfoDTO.getSql()) && StringUtils.isNotBlank(tableInfoDTO.getTable())) {