diff --git a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java index a685e7d..32e7112 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/system/service/impl/TRecordServiceImpl.java @@ -318,6 +318,12 @@ public class TRecordServiceImpl implements ITRecordService HashMap> map = new HashMap<>(); result.forEach(jsonObject -> { 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); }