“mitao”
2026-01-29 65289310cbb062a94186745ab5ac2e6a371fb0c7
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()))
@@ -494,14 +496,14 @@
        }
        // 根据阈值判断类别(从高到低判断)
        if (finalScore >= thresholdC) {
        if (finalScore >= thresholdA) {
            return "A";
        } else if (finalScore >= thresholdB) {
            return "B";
        } else if (finalScore >= thresholdA) {
        } else if (finalScore >= thresholdC) {
            return "C";
        } else {
            return null; // 不满足任何类别
            return "C"; // 不满足任何类别
        }
    }
@@ -556,10 +558,10 @@
                            break;
                        }
                    }
                    if (!matchesRule) {
                        break;
                    }
                    //短路或开关
                    // if (!matchesRule) {
                    //     break;
                    // }
                }
                if (matchesRule) {