高德返回格式修改
This commit is contained in:
parent
eff1640681
commit
657b3ac904
|
@ -109,11 +109,11 @@ public class GaodeController {
|
|||
Map data = (Map) forObject.get("data");
|
||||
if (data != null) {
|
||||
Map indexData = (Map) data.get("index_data");
|
||||
List<Integer> query = (List) indexData.get("query");
|
||||
List<Map> 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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue