| | |
| | | |
| | | @Override |
| | | protected List<String> buildRowData(ErrorRecord data) { |
| | | // 保留此方法以保持兼容性,实际使用 buildRowDataObjects |
| | | return null; |
| | | } |
| | | |
| | | @Override |
| | | protected List<Object> buildRowDataObjects(ErrorRecord data) { |
| | | if(data.getDevice() == null) // 有设备信息的为设备记录 |
| | | return null; |
| | | |
| | |
| | | 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), |
| | |
| | | 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 : "-"; |
| | | } |
| | | } |