| | |
| | | Object extension = row.get("extensionMeasurementsJson"); |
| | | if (extension == null) continue; |
| | | Map<String, Object> values = com.alibaba.fastjson2.JSON.parseObject(extension.toString()); |
| | | for (String field : List.of("stepDuration", "startVoltage", "chargePeakVoltage", "dischargeValleyVoltage")) |
| | | // 中值与历史峰谷值是不同测量,不将旧扩展字段回退映射为中值。 |
| | | for (String field : List.of("stepDuration", "startVoltage", "chargeMedianVoltage", "dischargeMedianVoltage")) |
| | | if (values.containsKey(field)) row.put(field, values.get(field)); |
| | | } |
| | | return rows; |