mirror of
https://github.com/dataease/dataease.git
synced 2025-02-23 19:12:55 +08:00
feat(数据集): 数据集增加分组字段功能
This commit is contained in:
parent
423993b43c
commit
93dc824534
@ -291,11 +291,13 @@ public class DatasetTableFieldManage {
|
||||
if (StringUtils.isNotEmpty(ele.getParams())) {
|
||||
TypeReference<List<CalParam>> tokenType = new TypeReference<>() {
|
||||
};
|
||||
List<CalParam> calParams = JsonUtil.parseList(ele.getParams(), tokenType);
|
||||
dto.setParams(calParams);
|
||||
}
|
||||
if (StringUtils.isNotEmpty(ele.getGroupList())) {
|
||||
TypeReference<List<FieldGroupDTO>> groupTokenType = new TypeReference<>() {
|
||||
};
|
||||
List<CalParam> calParams = JsonUtil.parseList(ele.getParams(), tokenType);
|
||||
List<FieldGroupDTO> fieldGroups = JsonUtil.parseList(ele.getGroupList(), groupTokenType);
|
||||
dto.setParams(calParams);
|
||||
dto.setGroupList(fieldGroups);
|
||||
}
|
||||
return dto;
|
||||
|
Loading…
Reference in New Issue
Block a user