Compare commits
2 Commits
26d295e9cb
...
0653ec5685
Author | SHA1 | Date |
---|---|---|
yuhan_jiang | 0653ec5685 | |
yuhan_jiang | 657b3ac904 |
|
@ -109,11 +109,11 @@ public class GaodeController {
|
||||||
Map data = (Map) forObject.get("data");
|
Map data = (Map) forObject.get("data");
|
||||||
if (data != null) {
|
if (data != null) {
|
||||||
Map indexData = (Map) data.get("index_data");
|
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) {
|
if (query != null && query.size() == 1) {
|
||||||
CrowdFlow crowdFlow = new CrowdFlow();
|
CrowdFlow crowdFlow = new CrowdFlow();
|
||||||
crowdFlow.setCaptureTime(currentDate);
|
crowdFlow.setCaptureTime(currentDate);
|
||||||
crowdFlow.setCnt(query.get(0));
|
crowdFlow.setCnt((Integer) query.get(0).get("index"));
|
||||||
crowdFlowMapper.insert(crowdFlow);
|
crowdFlowMapper.insert(crowdFlow);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue