liujie
2026-05-21 34fb8efd9fef8a6ed0d7cbaff74f37f06bf2db60
admin-server/src/main/java/com/estate/expert/admin/stat/report/data/DeviceReportData.java
@@ -34,7 +34,7 @@
    Map<String, Long> deviceProblemHazardCounts;
    Map<String, Long> deviceProblemCheckCounts;
    Map<Integer, Long> deviceCheckCounts;
    /**
     * 生成报告数据
@@ -264,10 +264,11 @@
    }
    private long getDeviceProblemCheckCount(ErrorRecord record) {
        if (deviceProblemCheckCounts == null) {
        Integer deviceId = record != null && record.getDevice() != null ? record.getDevice().getId() : null;
        if (deviceId == null || deviceCheckCounts == null) {
            return 0L;
        }
        return deviceProblemCheckCounts.getOrDefault(buildDeviceProblemKey(record), 0L);
        return Math.max(deviceCheckCounts.getOrDefault(deviceId, 0L), 0L);
    }
    private String buildDeviceProblemKey(ErrorRecord record) {