From 493e4c343306706bb055ed9483cf6a9dc7923d63 Mon Sep 17 00:00:00 2001 From: gaojuan1 Date: Fri, 14 Feb 2025 17:56:48 +0800 Subject: [PATCH] update --- .../fangjia/script/gj/district/DistrictFieldAddBatch.groovy | 6 ++++-- 1 file changed, 4 insertions(+), 2 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 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)