liujie
2026-06-25 4e8da8055692c845345f48e891850b6a685977be
admin-server/src/main/java/com/estate/expert/admin/io/processor/impl/record/DeviceErrorRecordProcessor.java
@@ -31,6 +31,12 @@
    @Override
    protected List<String> buildRowData(ErrorRecord data) {
        // 保留此方法以保持兼容性,实际使用 buildRowDataObjects
        return null;
    }
    @Override
    protected List<Object> buildRowDataObjects(ErrorRecord data) {
        if(data.getDevice() == null) // 有设备信息的为设备记录
            return null;
@@ -48,8 +54,8 @@
                props.get("工程起重机械租赁单位") == null ? "" : props.get("工程起重机械租赁单位"),
                props.get("工程起重机械维保单位") == null ? "" : props.get("工程起重机械维保单位"),
                props.get("工程起重机械生产单位") == null ? "" : props.get("工程起重机械生产单位"),
                getDeviceScore(data.getCheckTask().getDeviceScoreMap(), data.getDevice().getId()),
                getDeviceScore(data.getCheckTask().getDeviceFuzzyMap(), data.getDevice().getId()),
                getDeviceScoreObject(data.getCheckTask().getDeviceScoreMap(), data.getDevice().getId()),
                getDeviceScoreObject(data.getCheckTask().getDeviceFuzzyMap(), data.getDevice().getId()),
                data.getProblem().getDescription(),
                data.getRemark(),
                ProcessorHelper.getSpec(data),
@@ -64,4 +70,11 @@
            return "-";
        return deviceScoreMap.get(deviceId) == null ? "-" : deviceScoreMap.get(deviceId).toString();
    }
    private Object getDeviceScoreObject(Map<Integer, Float> deviceScoreMap, Integer deviceId){
        if(deviceScoreMap == null)
            return "-";
        Float score = deviceScoreMap.get(deviceId);
        return score != null ? score : "-";
    }
}