From 5bd495f4717e91b6107a5df3ca2c601cc4aa88a2 Mon Sep 17 00:00:00 2001 From: gongzhenkun <1658878546@qq.com> Date: Wed, 28 Dec 2022 15:34:21 +0800 Subject: [PATCH] =?UTF-8?q?AI=E5=8E=86=E5=8F=B2=E6=95=B0=E6=8D=AE=E4=B8=A2?= =?UTF-8?q?=E5=A4=B1=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ruoyi/system/service/impl/TRecordServiceImpl.java | 6 ++++++ 1 file changed, 6 insertions(+) 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); }