ruoyi-system/src/main/java/com/ruoyi/system/service/ProjectCategoryCalculator.java
@@ -316,6 +316,8 @@ .average() .orElse(0.0); System.out.println("results"+results); // 计算设备检查平均分(需要解析 device_res_map) List<Float> deviceScores = results.stream() .filter(e -> StringUtils.hasText(e.getDeviceResMap())) @@ -495,11 +497,11 @@ // 根据阈值判断类别(从高到低判断) if (finalScore >= thresholdC) { return "A"; return "C"; } else if (finalScore >= thresholdB) { return "B"; } else if (finalScore >= thresholdA) { return "C"; return "A"; } else { return "C"; // 不满足任何类别 }