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 5610ae238..8507f7d00 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,7 +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)//ÈÚºÏ @@ -330,7 +330,9 @@ class DistrictFieldAddBatch extends BaseBatch{ def newVal = null if(seaweedfield == "estate_charge"){ newVal = FiledStrand.processEstateCharge(c, FiledStrand.getNumber(esVal), dist.estate_type2) - newVal = newVal.toString() + if(newVal) { + newVal = newVal.toString() + } } if(seaweedfield == "build_date" || seaweedfield == "live_date"){ newVal = FiledStrand.processFinishBuildingDate(esVal)