|
@@ -183,18 +183,20 @@ private IEartagEartagRegister2Service eartagRegisterService;
|
|
|
if ("10000".equals(infocode)){
|
|
|
JSONObject result = (JSONObject)body.get("result");
|
|
|
address = (String) result.get("desc");
|
|
|
- Integer radius = (Integer) result.get("radius");
|
|
|
+ String radius = (String) result.get("radius");
|
|
|
String locations = (String) result.get("location");
|
|
|
String[] location = locations.split(",");
|
|
|
|
|
|
+ lat = location[1];
|
|
|
+ lon = location[1];
|
|
|
+
|
|
|
StationLib stationLib1 = new StationLib();
|
|
|
stationLib1.setAddress(address);
|
|
|
stationLib1.setCi(ci);
|
|
|
stationLib1.setLac(lac);
|
|
|
- stationLib1.setLat(location[1]);
|
|
|
- stationLib1.setLon(location[0]);
|
|
|
- stationLib1.setRadius(radius);
|
|
|
-
|
|
|
+ stationLib1.setLat(lat);
|
|
|
+ stationLib1.setLon(lon);
|
|
|
+ stationLib1.setRadius(Integer.parseInt(radius));
|
|
|
stationLibService.save(stationLib1);
|
|
|
|
|
|
}else {
|