AI历史数据丢失问题修复

master
gongzhenkun 2 years ago
parent 99cf641da9
commit 5bd495f471

@ -318,6 +318,12 @@ public class TRecordServiceImpl implements ITRecordService
HashMap<String, ArrayList<Object>> map = new HashMap<>(); HashMap<String, ArrayList<Object>> map = new HashMap<>();
result.forEach(jsonObject -> { result.forEach(jsonObject -> {
getJsonData(jsonObject.getJSONObject("data"), "data", map, ignoreKeys); getJsonData(jsonObject.getJSONObject("data"), "data", map, ignoreKeys);
logger.info("history map is {} ", map);
map.forEach((key, value) -> {
if (value.size() < result.indexOf(jsonObject) + 1) {
value.add("-1");
}
});
}); });
recordHistoryDataResp.setHistoryDataMap(map); recordHistoryDataResp.setHistoryDataMap(map);
} }

Loading…
Cancel
Save