Merge branch 'script_gj' into 'master'

update

See merge request !1075
This commit is contained in:
2025-02-12 18:13:13 +08:00
@@ -119,6 +119,7 @@ class DistrictFieldAddBatch extends BaseBatch{
} }
for(def c : citys){ for(def c : citys){
def totalCount = CommonDatautils.findAllDistrictCount("district", c) def totalCount = CommonDatautils.findAllDistrictCount("district", c)
if(totalCount){ if(totalCount){
// rh_analysRets = addFieldFromRonghe(c, totalCount, rh_analysRets)//融合 // rh_analysRets = addFieldFromRonghe(c, totalCount, rh_analysRets)//融合
@@ -397,6 +398,7 @@ class DistrictFieldAddBatch extends BaseBatch{
newValues.put(seaweedfield, newVal) newValues.put(seaweedfield, newVal)
} }
if(seaweedfield == "lng"){ if(seaweedfield == "lng"){
try{
def locationMap = FiledStrand.processLngAndLat(esVal) def locationMap = FiledStrand.processLngAndLat(esVal)
if(locationMap){ if(locationMap){
newValues.put("lat", locationMap.lat) newValues.put("lat", locationMap.lat)
@@ -404,6 +406,9 @@ class DistrictFieldAddBatch extends BaseBatch{
newValues.put("lat2", locationMap.lat2) newValues.put("lat2", locationMap.lat2)
newValues.put("lng2", locationMap.lng2) newValues.put("lng2", locationMap.lng2)
} }
}catch(Exception e){
println esVal
}
} }
} }
} }