mirror of
https://github.com/dataease/dataease.git
synced 2026-06-12 08:21:09 +08:00
perf: 整合 SQLBot 的数据源接口,支持计算字段
This commit is contained in:
committed by
fit2cloud-chenyw
parent
894038a681
commit
04c1c31ba9
@@ -500,6 +500,11 @@ public class DatasetSQLBotManage {
|
||||
field.setType(row.get("cdtf_type").toString());
|
||||
field.setComment(row.get("cdtf_name").toString());
|
||||
if (ObjectUtils.isNotEmpty(row.get("cdtf_ext_field")) && !row.get("cdtf_ext_field").equals(0)) {
|
||||
Object extName = row.get("cdtf_name");
|
||||
String extNameText = null;
|
||||
if (ObjectUtils.isNotEmpty(extName) && StringUtils.isNotBlank(extNameText = extName.toString())) {
|
||||
field.setName(extNameText);
|
||||
}
|
||||
field.setNeedTransform(true);
|
||||
}
|
||||
Map<String, Object> fieldRowData = buildRowData(row, 3);
|
||||
|
||||
Reference in New Issue
Block a user