|
@@ -91,8 +91,6 @@ public class DataUtil {
|
|
|
public static void standTimeNet(List<Date> standTime, List<Map<String, Object>> result) {
|
|
|
for (Map<String, Object> map : result) {
|
|
|
// 创建一个新的 times 和 scores 列表,以确保它们与标准时间序列对齐
|
|
|
- List<Date> alignedTimes = new ArrayList<>();
|
|
|
- List<Float> alignedScores = new ArrayList<>();
|
|
|
// 使用一个Map来存储原始数据,以便快速查找
|
|
|
Map<Date, Float> timeScoreMap = new HashMap<>();
|
|
|
List<Map<String, Object>> trendList = (List<Map<String, Object>>) map.get("data");
|
|
@@ -110,11 +108,6 @@ public class DataUtil {
|
|
|
}
|
|
|
map.remove("data");
|
|
|
map.put("data", newTrend);
|
|
|
- // 更新原有的 times 和 scores 列表
|
|
|
-// trendList.clear();
|
|
|
-// trendList.addAll(newTrend);
|
|
|
-// scores.clear();
|
|
|
-// scores.addAll(alignedScores);
|
|
|
}
|
|
|
}
|
|
|
|