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 a6180d973..d1db63f64 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 @@ -40,7 +40,7 @@ class ThirdPriceMappingBatch extends BaseBatch{ @Override public void process(Object args) { // //将新增数据同步过来 -// addNemCommunity() + addNemCommunity() //// //接口进行匹配 match() @@ -52,9 +52,6 @@ class ThirdPriceMappingBatch extends BaseBatch{ def index = 0 for(def c : citys){ index ++ - if(index < 206){ - continue - } def query = new BasicDBObject("city", c).append("match_id", new BasicDBObject('$exists', false)) def noMatchDatas = thirdSeaweedMappingColl.find(query).toList() matchByCity(c, noMatchDatas) @@ -123,9 +120,6 @@ class ThirdPriceMappingBatch extends BaseBatch{ def index = 0 for(def c : citys){ index ++ - if(index < 70){ - continue - } def crawlDatas = thirdPartyPriceColl.find(new BasicDBObject("city", c).append("s_date", curDate)).toList() def addCount = addDatasToDB(crawlDatas) println c + " 新增:"+ addCount diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/images/AddDistImagesBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/images/AddDistImagesBatch.groovy index 471203033..60824f8d5 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/images/AddDistImagesBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/gj/images/AddDistImagesBatch.groovy @@ -39,7 +39,7 @@ class AddDistImagesBatch extends BaseBatch{ @Override public void process(Object args) { def mdate = DateUtils.formatDateByPattern(DateUtils.getFirstDayOfMonth(new Date(), -1), "yyyy-MM-dd") - def mdate = DateUtils.getFirstDayOfMonth(new Date(), -1) +// def mdate = DateUtils.getFirstDayOfMonth(new Date(), -1) def citys = CommonUtils.findAllCity() citys.each {city-> def communitys = findAllEsData2(city, mdate)