From 683de63a610ed659d6a21da6eacf6a1465317e1b Mon Sep 17 00:00:00 2001 From: gaojuan1 Date: Wed, 12 Feb 2025 18:09:51 +0800 Subject: [PATCH] update --- .../gj/district/DistrictFieldAddBatch.groovy | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/district/DistrictFieldAddBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/district/DistrictFieldAddBatch.groovy index 83f747d21..5610ae238 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/district/DistrictFieldAddBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/district/DistrictFieldAddBatch.groovy @@ -119,6 +119,7 @@ class DistrictFieldAddBatch extends BaseBatch{ } for(def c : citys){ + def totalCount = CommonDatautils.findAllDistrictCount("district", c) if(totalCount){ // rh_analysRets = addFieldFromRonghe(c, totalCount, rh_analysRets)//ÈÚºÏ @@ -397,12 +398,16 @@ class DistrictFieldAddBatch extends BaseBatch{ newValues.put(seaweedfield, newVal) } if(seaweedfield == "lng"){ - def locationMap = FiledStrand.processLngAndLat(esVal) - if(locationMap){ - newValues.put("lat", locationMap.lat) - newValues.put("lng", locationMap.lng) - newValues.put("lat2", locationMap.lat2) - newValues.put("lng2", locationMap.lng2) + try{ + def locationMap = FiledStrand.processLngAndLat(esVal) + if(locationMap){ + newValues.put("lat", locationMap.lat) + newValues.put("lng", locationMap.lng) + newValues.put("lat2", locationMap.lat2) + newValues.put("lng2", locationMap.lng2) + } + }catch(Exception e){ + println esVal } } }