|
|
|
|
@ -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; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|