diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/ThirdPartyPriceBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/ThirdPartyPriceBatch.groovy index 5f5a53f33..98612d573 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/ThirdPartyPriceBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/ccbevaluation/ThirdPartyPriceBatch.groovy @@ -260,6 +260,9 @@ class ThirdPartyPriceBatch extends BaseBatch { if(third.get("fccs_esf_price")){ price_map.fccs_avg_price = third.get("fccs_esf_price") } + if(third.get("csjj_esf_price")){ + price_map.csjj_avg_price = third.get("csjj_esf_price") + } dataMap.updatetime = DateUtils.formatDateByPattern(new Date(), "yyyy-MM-dd HH:mm:ss") allRows << dataMap } @@ -308,6 +311,8 @@ class ThirdPartyPriceBatch extends BaseBatch { web = "我爱我家" }else if(k=="fccs_avg_price"){ web = "房产超市" + }else if(k=="csjj_avg_price"){ + web = "城市居家" } ret << sourceMap.get(web) @@ -525,6 +530,7 @@ class ThirdPartyPriceBatch extends BaseBatch { q.put("city", city) q.put("s_date", new BasicDBObject('$gte', startDate).append('$lte',endDate)) + def dbcursor = AVERAGE_STATISTICS.find(q).sort(new BasicDBObject("s_date", -1)) def map = [:] for(def db : dbcursor){ @@ -593,6 +599,10 @@ class ThirdPartyPriceBatch extends BaseBatch { if(!dataMap.get("fccs_esf_price") && db.get("fccs_esf_price") && db.get("fccs_esf_price")>3000){ dataMap.put("fccs_esf_price", db.get("fccs_esf_price")) } + + if(!dataMap.get("csjj_esf_price") && db.get("csjj_esf_price") && db.get("csjj_esf_price")>3000){ + dataMap.put("csjj_esf_price", db.get("csjj_esf_price")) + } // if(db.zhugezhaofang_esf_price || db.anjuke_esf_price ||db.soufang_esf_price || db.lianjia_esf_price || db.cityhouse_esf_price || db.maitian_esf_price || db.beike_esf_price || db.get("365house_esf_price") || db.zhongyuan_esf_price || db.tuboshi_esf_price || db.qfang_esf_price || db.fangtan_esf_price || db.fangduoduo_esf_price || db.get("5i5j_esf_price")){ // map.put(key, db) // } @@ -600,8 +610,8 @@ class ThirdPartyPriceBatch extends BaseBatch { def resultMap = [:] map.each {key, value-> - if(value && value.size()>1){ - if(value.size()==2 && !value.lianjia_esf_price && !value.beike_esf_price){ + if(value && value.size()>1){ //csjj_esf_price 国信达成交 + if(value.size()==2 && !value.lianjia_esf_price && !value.beike_esf_price && !value.csjj_esf_price){ def price = statMap.get(key) if(price){ def priceMap = [:]