补充学校经纬度

This commit is contained in:
Jian Shen
2022-09-08 21:06:50 +08:00
parent 6008bc55b0
commit 7076c00dca
@@ -16,7 +16,7 @@ class FillLngLat {
ElasticUtils.executeSqlQuery("select * from dws_poi where location is null", { data ->
println(data)
def lngLat = GaoDeUtils.parserByGaode(data.city, data.region + data.name + data.address)
if (lngLat.size() == 2 ) {
if (lngLat != null && lngLat.size() == 2 ) {
JSONObject jsonObject = new JSONObject()
jsonObject.put("lon", Double.valueOf(lngLat['lng']))
jsonObject.put("lat", Double.valueOf(lngLat['lat']))