+11
-6
@@ -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,12 +398,16 @@ class DistrictFieldAddBatch extends BaseBatch{
|
|||||||
newValues.put(seaweedfield, newVal)
|
newValues.put(seaweedfield, newVal)
|
||||||
}
|
}
|
||||||
if(seaweedfield == "lng"){
|
if(seaweedfield == "lng"){
|
||||||
def locationMap = FiledStrand.processLngAndLat(esVal)
|
try{
|
||||||
if(locationMap){
|
def locationMap = FiledStrand.processLngAndLat(esVal)
|
||||||
newValues.put("lat", locationMap.lat)
|
if(locationMap){
|
||||||
newValues.put("lng", locationMap.lng)
|
newValues.put("lat", locationMap.lat)
|
||||||
newValues.put("lat2", locationMap.lat2)
|
newValues.put("lng", locationMap.lng)
|
||||||
newValues.put("lng2", locationMap.lng2)
|
newValues.put("lat2", locationMap.lat2)
|
||||||
|
newValues.put("lng2", locationMap.lng2)
|
||||||
|
}
|
||||||
|
}catch(Exception e){
|
||||||
|
println esVal
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user