feat(fix):数据集、视图分组权限返回修复

This commit is contained in:
junjie 2021-06-22 11:48:39 +08:00
parent a205bf46f5
commit 35a9a8f390
2 changed files with 2 additions and 6 deletions

View File

@ -90,11 +90,9 @@ public class ChartViewService {
List<ChartGroupDTO> groups = extChartGroupMapper.search(chartGroupRequest);
List<ChartViewDTO> group = groups.stream().map(ele -> {
ChartViewDTO dto = new ChartViewDTO();
dto.setId(ele.getId());
dto.setName(ele.getName());
BeanUtils.copyBean(dto, ele);
dto.setIsLeaf(false);
dto.setType("group");
dto.setPid(ele.getPid());
return dto;
}).collect(Collectors.toList());
group.addAll(charts);

View File

@ -201,11 +201,9 @@ public class DataSetTableService {
List<DataSetGroupDTO> groups = extDataSetGroupMapper.search(datasetGroup);
List<DataSetTableDTO> group = groups.stream().map(ele -> {
DataSetTableDTO dto = new DataSetTableDTO();
dto.setId(ele.getId());
dto.setName(ele.getName());
BeanUtils.copyBean(dto, ele);
dto.setIsLeaf(false);
dto.setType("group");
dto.setPid(ele.getPid());
return dto;
}).collect(Collectors.toList());
group.addAll(ds);