Browse Source

fix: 去重

release-sy-tdsql
hxh 1 month ago
parent
commit
9f8db8b1c0
  1. 1
      shuili-system/src/main/java/com/kms/yxgh/common/enums/ProjectCharEnum.java

1
shuili-system/src/main/java/com/kms/yxgh/common/enums/ProjectCharEnum.java

@ -91,6 +91,7 @@ public enum ProjectCharEnum {
charInfoDto.setXAxis(Stream.concat(this.leftElements.stream(), this.rightElements.stream()) charInfoDto.setXAxis(Stream.concat(this.leftElements.stream(), this.rightElements.stream())
.flatMap(type -> dataMap.getOrDefault(type, new HashMap<>()).keySet().stream() .flatMap(type -> dataMap.getOrDefault(type, new HashMap<>()).keySet().stream()
).filter(Objects::nonNull) ).filter(Objects::nonNull)
.distinct()
.sorted() .sorted()
.collect(Collectors.toList())); .collect(Collectors.toList()));
List<CharInfoDto.YAxis> yAxis = new ArrayList<>(); List<CharInfoDto.YAxis> yAxis = new ArrayList<>();

Loading…
Cancel
Save