forked from github/dataease
fix(视图-符号地图): 同时添加标签字段和提示字段报错
This commit is contained in:
parent
7a2b6dd8dc
commit
8fc62ab079
@ -877,12 +877,11 @@ public class ChartDataBuild {
|
|||||||
|
|
||||||
// 表格
|
// 表格
|
||||||
public static Map<String, Object> transTableNormal(Map<String, List<ChartViewFieldDTO>> fieldMap, ChartViewWithBLOBs view, List<String[]> data, List<String> desensitizationList) {
|
public static Map<String, Object> transTableNormal(Map<String, List<ChartViewFieldDTO>> fieldMap, ChartViewWithBLOBs view, List<String[]> data, List<String> desensitizationList) {
|
||||||
// List<ChartViewFieldDTO> fields = fieldMap.entrySet().stream().map(Map.Entry::getValue).flatMap(List::stream).collect(Collectors.toList());
|
|
||||||
// 上面乱序了
|
|
||||||
List<ChartViewFieldDTO> fields = new ArrayList<>();
|
List<ChartViewFieldDTO> fields = new ArrayList<>();
|
||||||
if (CollectionUtils.isNotEmpty(fieldMap.get("xAxis")))fields.addAll(fieldMap.get("xAxis"));
|
if (CollectionUtils.isNotEmpty(fieldMap.get("xAxis")))fields.addAll(fieldMap.get("xAxis"));
|
||||||
if (CollectionUtils.isNotEmpty(fieldMap.get("labelAxis")))fields.addAll(fieldMap.get("labelAxis"));
|
|
||||||
if (CollectionUtils.isNotEmpty(fieldMap.get("tooltipAxis")))fields.addAll(fieldMap.get("tooltipAxis"));
|
if (CollectionUtils.isNotEmpty(fieldMap.get("tooltipAxis")))fields.addAll(fieldMap.get("tooltipAxis"));
|
||||||
|
if (CollectionUtils.isNotEmpty(fieldMap.get("labelAxis")))fields.addAll(fieldMap.get("labelAxis"));
|
||||||
if (CollectionUtils.isNotEmpty(fieldMap.get("yAxis")))fields.addAll(fieldMap.get("yAxis"));
|
if (CollectionUtils.isNotEmpty(fieldMap.get("yAxis")))fields.addAll(fieldMap.get("yAxis"));
|
||||||
return transTableNormal(fields, view, data, desensitizationList);
|
return transTableNormal(fields, view, data, desensitizationList);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user