修改获取AI json

master
chenfei 2 years ago
parent c6b9c36783
commit 0564cc121c

@ -163,9 +163,9 @@ public class TRecordServiceImpl implements ITRecordService
String key1 = jsonKeyList.get(1); String key1 = jsonKeyList.get(1);
String key2 = jsonKeyList.get(2); String key2 = jsonKeyList.get(2);
result.forEach(jsonObject -> { result.forEach(jsonObject -> {
shezhiList.add(jsonObject.getJSONObject("data").getJSONObject("shezhi").getJSONObject(keys0[0]).getInteger(keys0[1])); shezhiList.add(jsonObject.getJSONObject("shezhi").getJSONObject(keys0[0]).getInteger(keys0[1]));
shetaiList.add(jsonObject.getJSONObject("data").getJSONObject("shetai").getInteger(key1)); shetaiList.add(jsonObject.getJSONObject("shetai").getInteger(key1));
shexiaList.add(jsonObject.getJSONObject("data").getJSONObject("shexia").getInteger(key2)); shexiaList.add(jsonObject.getJSONObject("shexia").getInteger(key2));
}); });
recordHistoryDataResp.setShezhiList(shezhiList); recordHistoryDataResp.setShezhiList(shezhiList);
recordHistoryDataResp.setShetaiList(shetaiList); recordHistoryDataResp.setShetaiList(shetaiList);

Loading…
Cancel
Save