友达去价格限制

This commit is contained in:
2021-10-13 17:29:01 +08:00
parent a68ba35360
commit 48c505166d
@@ -486,25 +486,25 @@ class BigdataDealBatch extends BaseBatch{
for(def obj : dbcursor){
if(obj.fjName && ["公寓","联列住宅","花园住宅","别墅","里弄房","新工房","其它"].contains(obj.houseType)){
def price = statMap.get(obj.fjRegion+"@"+obj.fjName)
if(price){
def startPrice = 0
def endPrice= 0
if(obj.fjCity=="上海"){
startPrice = (int)(price - price*0.1)
endPrice = (int)(price*0.5 + price)
}else{
startPrice = (int)(price - price*0.5)
endPrice = (int)(price*0.5 + price)
}
if(obj.price>=startPrice && obj.price<=endPrice){
rets << obj;
}else{
index++
println index + " "+obj
}
}
rets << obj;
// def price = statMap.get(obj.fjRegion+"@"+obj.fjName)
// if(price){
// def startPrice = 0
// def endPrice= 0
// if(obj.fjCity=="上海"){
// startPrice = (int)(price - price*0.1)
// endPrice = (int)(price*0.5 + price)
// }else{
// startPrice = (int)(price - price*0.5)
// endPrice = (int)(price*0.5 + price)
// }
// if(obj.price>=startPrice && obj.price<=endPrice){
// rets << obj;
// }else{
// index++
// println index + " "+obj
// }
// }
}
}
return rets;