forked from github/dataease
fix: 除明细表外,对于其他图表类型,脱敏字段不展示
This commit is contained in:
parent
fa8abdea07
commit
13bcf02dd5
@ -133,10 +133,7 @@ public class ChartViewManege {
|
||||
// filter column disable field
|
||||
Map<String, ColumnPermissionItem> desensitizationList = new HashMap<>();
|
||||
List<DatasetTableFieldDTO> datasetTableFieldDTOS = permissionManage.filterColumnPermissions(collect, desensitizationList, id, null);
|
||||
if (!chartViewDTO.getType().equalsIgnoreCase("table-info")) {
|
||||
datasetTableFieldDTOS = datasetTableFieldDTOS.stream().filter(datasetTableFieldDTO -> !desensitizationList.keySet().contains(datasetTableFieldDTO.getDataeaseName())).collect(Collectors.toList());
|
||||
}
|
||||
|
||||
datasetTableFieldDTOS.forEach(ele -> ele.setDesensitized(desensitizationList.containsKey(ele.getDataeaseName())));
|
||||
datasetTableFieldDTOS.add(createCountField(id));
|
||||
List<ChartViewFieldDTO> list = transFieldDTO(datasetTableFieldDTOS);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user