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); } }