Browse Source

修改灵敏感知大屏2

main
sjh 1 year ago
parent
commit
687ba44518
  1. 7
      src/main/java/com/biutag/supervision/service/RiskStatisticsService.java

7
src/main/java/com/biutag/supervision/service/RiskStatisticsService.java

@ -85,7 +85,12 @@ public class RiskStatisticsService {
}
result.add(tmp);
}
result.sort(Comparator.comparing(RiskStatisticsVo::getValue, Comparator.reverseOrder()));
if (!result.isEmpty() && result.get(0).getValue() != null) {
result.sort(Comparator.comparing(RiskStatisticsVo::getValue, Comparator.reverseOrder()));
}
if (!result.isEmpty() && result.get(0).getScore() != null) {
result.sort(Comparator.comparing(RiskStatisticsVo::getScore, Comparator.reverseOrder()));
}
return result;
}

Loading…
Cancel
Save