| | |
| | | { |
| | | if (rows == null) return List.of(); |
| | | for (Map<String, Object> row : rows) |
| | | for (String key : List.of("deviceTime", "recordedAt", "absoluteTime", "serverReceivedAt")) |
| | | for (String key : List.of("deviceTime", "collectorDeviceTime", "captureSlot", "recordedAt", "absoluteTime", "serverReceivedAt")) |
| | | { |
| | | Object value = row.get(key); |
| | | if (value instanceof Date date) row.put(key, date.getTime()); |
| | |
| | | return rows; |
| | | } |
| | | |
| | | /** 将最新人工覆盖应用到设备事实,删除只影响当前有效视图,不抹除原始采样。 */ |
| | | /** 合并既有导入记录和人工修订供当前有效数据查询;不在此处执行物理删除。 */ |
| | | private List<Map<String, Object>> applyEffectiveData(Long testId, String dataType, |
| | | List<Map<String, Object>> source) |
| | | { |