From 930a54b49c22419bfdd5f671698339df9aa368c4 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Mon, 20 Dec 2021 17:15:27 +0800 Subject: [PATCH] update --- .../script/ccbevaluation/BigdataForsaleBatch.groovy | 12 ++++++------ .../com/fangjia/script/wenyan/temp/QinLin.groovy | 4 ++-- .../script/wenyan/temp/SiChuanJingCheng.groovy | 4 ++-- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/BigdataForsaleBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/BigdataForsaleBatch.groovy index dd5cb0d0b..421c1caa8 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/BigdataForsaleBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/BigdataForsaleBatch.groovy @@ -67,17 +67,17 @@ class BigdataForsaleBatch extends BaseBatch{ @Override public void process(Object args) { def index = 0 - def citys = ["苏州","杭州"]//CcbCommonUtils.citys; + def citys = CcbCommonUtils.citys; def cityCodeDataMap = CcbCommonUtils.findCityCodeValue() for(def city : citys){ index++ // def distIds = getDistrictIds(cityCodeDataMap.get(city)) def distCodeMap = CcbCommonUtils.findAllDistrictCodeValue(city) def districts = CcbCommonUtils.findAllDistrictByCity(city, "district", ["city", "region", "name", "lng","estate_type2","name_cat","address", "alias", "finish_building_date", "house_property", "property_life", "build_type", "build_structure"]); -// exportSellCSV(index, city, cityCodeDataMap, distCodeMap, districts, 20211019, 20211118); - // exportSellCSV(index, city, cityCodeDataMap, distCodeMap, districts, 20210801, 20210831); + exportSellCSV(index, city, cityCodeDataMap, distCodeMap, districts, 20211118, 20211219); +// exportSellCSV(index, city, cityCodeDataMap, distCodeMap, districts, 20210801, 20210831); //测试通过匹配接口配房源效果 - exportSellCSV(index, city, cityCodeDataMap, distCodeMap, districts, 20201201, 20211118) +// exportSellCSV(index, city, cityCodeDataMap, distCodeMap, districts, 20201201, 20211118) } } @@ -97,8 +97,8 @@ class BigdataForsaleBatch extends BaseBatch{ totalCount.addAndGet(1) def commId = rMap.get("_id").toString() - //def ret = findHouses(city, rMap.region, "sell", startDate,endDate, rMap.name, rMap.alias) - def ret = findHousesByDistId(city, commId, "sell", startDate,endDate) + def ret = findHouses(city, rMap.region, "sell", startDate,endDate, rMap.name, rMap.alias) + //def ret = findHousesByDistId(city, commId, "sell", startDate,endDate) // if(ret && ret.size()<100){//导历史房源需要,以后不需要 // ret = findHouses(city, rMap.region, "sell", 20190701, endDate, rMap.name, rMap.alias) // } diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/wenyan/temp/QinLin.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/wenyan/temp/QinLin.groovy index 38f6a9ad7..d1d4ada4c 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/wenyan/temp/QinLin.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/wenyan/temp/QinLin.groovy @@ -11,8 +11,8 @@ import org.bson.Document import static com.mongodb.client.model.Filters.* MongoCollection OPEN_URI_LOG = Mongo3Utils.getDbCollection(Constants.SEAWATER_MONGO_URI, "business", "open_uri_log") -def startDate = DateUtil.parseDate("20211001", "yyyyMMdd") -def endDate = DateUtil.parseDate("20211101", "yyyyMMdd") +def startDate = DateUtil.parseDate("20211101", "yyyyMMdd") +def endDate = DateUtil.parseDate("20211201", "yyyyMMdd") Calendar calendar = Calendar.getInstance() calendar.setTime(startDate) def count = 0 diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/wenyan/temp/SiChuanJingCheng.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/wenyan/temp/SiChuanJingCheng.groovy index fe4bad148..759375bf1 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/wenyan/temp/SiChuanJingCheng.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/wenyan/temp/SiChuanJingCheng.groovy @@ -11,8 +11,8 @@ import org.bson.Document import static com.mongodb.client.model.Filters.* MongoCollection OPEN_URI_LOG = Mongo3Utils.getDbCollection(Constants.SEAWATER_MONGO_URI, "business", "open_uri_log") -def startDate = DateUtil.parseDate("20211001", "yyyyMMdd") -def endDate = DateUtil.parseDate("20211101", "yyyyMMdd") +def startDate = DateUtil.parseDate("20211101", "yyyyMMdd") +def endDate = DateUtil.parseDate("20211201", "yyyyMMdd") Calendar calendar = Calendar.getInstance() calendar.setTime(startDate) def count = 0