From 0564cc121c1b223f08eba5a20e3bdeab01880e69 Mon Sep 17 00:00:00 2001 From: chenfei <18955928961@163.com> Date: Wed, 10 Aug 2022 10:24:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=8E=B7=E5=8F=96AI=20json?= 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, 3 insertions(+), 3 deletions(-) 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 3e42c5d..efc0890 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 @@ -163,9 +163,9 @@ public class TRecordServiceImpl implements ITRecordService String key1 = jsonKeyList.get(1); String key2 = jsonKeyList.get(2); result.forEach(jsonObject -> { - shezhiList.add(jsonObject.getJSONObject("data").getJSONObject("shezhi").getJSONObject(keys0[0]).getInteger(keys0[1])); - shetaiList.add(jsonObject.getJSONObject("data").getJSONObject("shetai").getInteger(key1)); - shexiaList.add(jsonObject.getJSONObject("data").getJSONObject("shexia").getInteger(key2)); + shezhiList.add(jsonObject.getJSONObject("shezhi").getJSONObject(keys0[0]).getInteger(keys0[1])); + shetaiList.add(jsonObject.getJSONObject("shetai").getInteger(key1)); + shexiaList.add(jsonObject.getJSONObject("shexia").getInteger(key2)); }); recordHistoryDataResp.setShezhiList(shezhiList); recordHistoryDataResp.setShetaiList(shetaiList);