mirror of
https://github.com/dataease/dataease.git
synced 2026-06-09 21:27:21 +08:00
perf: 整合 SQLBot 的数据源接口,支持带参数数据集
This commit is contained in:
committed by
fit2cloud-chenyw
parent
c8ceb28239
commit
3cfd3c00e0
@@ -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())) {
|
||||
|
||||
Reference in New Issue
Block a user