From 657b3ac90457199e3696f2350fd40d0c9021ba14 Mon Sep 17 00:00:00 2001 From: yuhan_jiang <1165121840@qq.com> Date: Fri, 25 Nov 2022 19:33:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AB=98=E5=BE=B7=E8=BF=94=E5=9B=9E=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hisense/monitormanage/controller/GaodeController.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/hisense/monitormanage/controller/GaodeController.java b/src/main/java/com/hisense/monitormanage/controller/GaodeController.java index 31897e3..7032d5b 100644 --- a/src/main/java/com/hisense/monitormanage/controller/GaodeController.java +++ b/src/main/java/com/hisense/monitormanage/controller/GaodeController.java @@ -109,11 +109,11 @@ public class GaodeController { Map data = (Map) forObject.get("data"); if (data != null) { Map indexData = (Map) data.get("index_data"); - List query = (List) indexData.get("query"); + List query = (List) indexData.get("query"); if (query != null && query.size() == 1) { CrowdFlow crowdFlow = new CrowdFlow(); crowdFlow.setCaptureTime(currentDate); - crowdFlow.setCnt(query.get(0)); + crowdFlow.setCnt((Integer) query.get(0).get("index")); crowdFlowMapper.insert(crowdFlow); } }