update
This commit is contained in:
+5
-5
@@ -264,12 +264,12 @@ class DistrictSellStatBatch extends BaseBatch {
|
|||||||
def dbcursor = DISTRICT_STAT.find(q).sort(new BasicDBObject().append("weekend", -1))
|
def dbcursor = DISTRICT_STAT.find(q).sort(new BasicDBObject().append("weekend", -1))
|
||||||
def priceMap = [:]
|
def priceMap = [:]
|
||||||
for(def d : dbcursor){
|
for(def d : dbcursor){
|
||||||
if(city == "福州"){
|
if(!priceMap.containsKey(d.region +"##"+d.district_name+"##"+d.estate_type)){
|
||||||
if(d.avg_price_2b && d.value_type!=1){
|
if(city == "福州"){
|
||||||
d.avg_price = d.avg_price_2b
|
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)
|
priceMap.put(d.region +"##"+d.district_name+"##"+d.estate_type, d)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user