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 7560c83ef..0e8f5c83e 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 @@ -31,7 +31,7 @@ class ThirdPriceMappingBatch extends BaseBatch{ final DBCollection dataProcessColl = MongoUtils.getCollectionByName("fangjia_craw", "data_process", "192.168.0.235", 27018) - def curDate = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -1, "yyyyMM")); + def curDate = Integer.parseInt(DateUtils.addMonth(DateUtils.formatDateByPattern(new Date(), "yyyyMM"), -2, "yyyyMM")); static main(args) { runBatch(new ThirdPriceMappingBatch(), args); @@ -40,7 +40,7 @@ class ThirdPriceMappingBatch extends BaseBatch{ @Override public void process(Object args) { // //将新增数据同步过来 -// addNemCommunity() + addNemCommunity() //// //接口进行匹配 match() @@ -48,7 +48,7 @@ class ThirdPriceMappingBatch extends BaseBatch{ } def match(){ - def citys = CommonUtils.findAllCity() + def citys = ["北京","厦门","泉州","安顺"]//CommonUtils.findAllCity() def index = 0 for(def c : citys){ index ++ @@ -115,7 +115,7 @@ class ThirdPriceMappingBatch extends BaseBatch{ } def addNemCommunity(){ - def citys = CommonUtils.findAllCity() + def citys = ["北京","厦门","泉州","安顺"] //CommonUtils.findAllCity() def total = 0 def index = 0 for(def c : citys){