feat(数据集): 数据集增加分组字段功能

This commit is contained in:
junjun 2025-02-08 12:13:51 +08:00 committed by 王嘉豪
parent 423993b43c
commit 93dc824534

View File

@ -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;