+19
-19
@@ -486,25 +486,25 @@ class BigdataDealBatch extends BaseBatch{
|
|||||||
for(def obj : dbcursor){
|
for(def obj : dbcursor){
|
||||||
|
|
||||||
if(obj.fjName && ["公寓","联列住宅","花园住宅","别墅","里弄房","新工房","其它"].contains(obj.houseType)){
|
if(obj.fjName && ["公寓","联列住宅","花园住宅","别墅","里弄房","新工房","其它"].contains(obj.houseType)){
|
||||||
|
rets << obj;
|
||||||
def price = statMap.get(obj.fjRegion+"@"+obj.fjName)
|
// def price = statMap.get(obj.fjRegion+"@"+obj.fjName)
|
||||||
if(price){
|
// if(price){
|
||||||
def startPrice = 0
|
// def startPrice = 0
|
||||||
def endPrice= 0
|
// def endPrice= 0
|
||||||
if(obj.fjCity=="上海"){
|
// if(obj.fjCity=="上海"){
|
||||||
startPrice = (int)(price - price*0.1)
|
// startPrice = (int)(price - price*0.1)
|
||||||
endPrice = (int)(price*0.5 + price)
|
// endPrice = (int)(price*0.5 + price)
|
||||||
}else{
|
// }else{
|
||||||
startPrice = (int)(price - price*0.5)
|
// startPrice = (int)(price - price*0.5)
|
||||||
endPrice = (int)(price*0.5 + price)
|
// endPrice = (int)(price*0.5 + price)
|
||||||
}
|
// }
|
||||||
if(obj.price>=startPrice && obj.price<=endPrice){
|
// if(obj.price>=startPrice && obj.price<=endPrice){
|
||||||
rets << obj;
|
// rets << obj;
|
||||||
}else{
|
// }else{
|
||||||
index++
|
// index++
|
||||||
println index + " "+obj
|
// println index + " "+obj
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return rets;
|
return rets;
|
||||||
|
|||||||
Reference in New Issue
Block a user