diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/ThirdPriceMappingBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/ThirdPriceMappingBatch.groovy index 0e8f5c83e..f9ea5362b 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/ThirdPriceMappingBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/data_handle/ThirdPriceMappingBatch.groovy @@ -39,16 +39,17 @@ class ThirdPriceMappingBatch extends BaseBatch{ @Override public void process(Object args) { + def citys = ["北京","厦门","泉州","安顺"]//CommonUtils.findAllCity() // //将新增数据同步过来 - addNemCommunity() +// addNemCommunity(citys) //// //接口进行匹配 - match() + match(citys) - addOldMatchResult() + addOldMatchResult(citys) } - def match(){ - def citys = ["北京","厦门","泉州","安顺"]//CommonUtils.findAllCity() + def match(citys){ + def index = 0 for(def c : citys){ index ++ @@ -114,8 +115,8 @@ class ThirdPriceMappingBatch extends BaseBatch{ return addCount.get(); } - def addNemCommunity(){ - def citys = ["北京","厦门","泉州","安顺"] //CommonUtils.findAllCity() + def addNemCommunity(citys){ +// def citys = ["北京","厦门","泉州","安顺"] //CommonUtils.findAllCity() def total = 0 def index = 0 for(def c : citys){ @@ -172,8 +173,8 @@ class ThirdPriceMappingBatch extends BaseBatch{ return addCount.get(); } - def addOldMatchResult(){ - def citys = CommonUtils.findAllCity() + def addOldMatchResult(citys){ +// def citys = CommonUtils.findAllCity() def keys = new BasicDBObject() keys.put("_id", 1) keys.put("city", 1)