From 97f5fefe261606dcf510d941f0206afec643bea2 Mon Sep 17 00:00:00 2001 From: gaojuan Date: Wed, 10 Jul 2024 14:20:53 +0800 Subject: [PATCH] update --- .../fangjia/script/fuzhou/DistrictSellStatBatch.groovy | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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) } }