diff --git a/projects/fangjia-script/src/main/groovy/com/fangjia/script/fuzhou/DistrictSellStatBatch.groovy b/projects/fangjia-script/src/main/groovy/com/fangjia/script/fuzhou/DistrictSellStatBatch.groovy index 1930b6d2d..ff963b129 100644 --- a/projects/fangjia-script/src/main/groovy/com/fangjia/script/fuzhou/DistrictSellStatBatch.groovy +++ b/projects/fangjia-script/src/main/groovy/com/fangjia/script/fuzhou/DistrictSellStatBatch.groovy @@ -264,12 +264,12 @@ class DistrictSellStatBatch extends BaseBatch { def dbcursor = DISTRICT_STAT.find(q).sort(new BasicDBObject().append("weekend", -1)) def priceMap = [:] for(def d : dbcursor){ - if(city == "¸£ÖÝ"){ - if(d.avg_price_2b && d.value_type!=1){ - d.avg_price = d.avg_price_2b + if(!priceMap.containsKey(d.region +"##"+d.district_name+"##"+d.estate_type)){ + if(city == "¸£ÖÝ"){ + if(d.avg_price_2b && d.value_type!=1){ + d.avg_price = d.avg_price_2b + } } - } - if(!priceMap.containsKey(d.region +"##"+d.district_name)){ priceMap.put(d.region +"##"+d.district_name+"##"+d.estate_type, d) } }