Merge pull request #10716 from dataease/pr@dev-v2@fix_count_field

fix(图表): 计数字段失效
This commit is contained in:
wisonic-s 2024-07-02 17:06:39 +08:00 committed by GitHub
commit cb6a64584c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -127,7 +127,8 @@ public class ChartDataManage {
List<DataSetRowPermissionsTreeDTO> rowPermissionsTree = permissionManage.getRowPermissionsTree(table.getId(), chartExtRequest.getUser());
//将没有权限的列删掉
List<String> dataeaseNames = columnPermissionFields.stream().map(DatasetTableFieldDTO::getDataeaseName).collect(Collectors.toList());
//计数字段
dataeaseNames.add("*");
AxisFormatResult formatResult = chartHandler.formatAxis(view);
formatResult.getContext().put("desensitizationList", desensitizationList);
var xAxis = formatResult.getAxisMap().get(ChartAxis.xAxis);