过滤范围修改
This commit is contained in:
+16
-4
@@ -416,8 +416,13 @@ class BigdataDealBatch extends BaseBatch{
|
|||||||
def startPrice = null
|
def startPrice = null
|
||||||
def endPrice = null
|
def endPrice = null
|
||||||
if(price){
|
if(price){
|
||||||
startPrice = (int)(price - price*0.1)
|
if(dist.city=="上海"){
|
||||||
endPrice = (int)(price*0.5 + price)
|
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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
def trades = CcbCommonUtils.findTradesDetail(dist, startDate, endDate, startPrice, endPrice)
|
def trades = CcbCommonUtils.findTradesDetail(dist, startDate, endDate, startPrice, endPrice)
|
||||||
if(trades){
|
if(trades){
|
||||||
@@ -448,8 +453,15 @@ class BigdataDealBatch extends BaseBatch{
|
|||||||
|
|
||||||
def price = statMap.get(obj.fjRegion+"@"+obj.fjName)
|
def price = statMap.get(obj.fjRegion+"@"+obj.fjName)
|
||||||
if(price){
|
if(price){
|
||||||
def startPrice = (int)(price - price*0.1)
|
def startPrice = 0
|
||||||
def endPrice= (int)(price*0.5 + price)
|
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){
|
if(obj.price>=startPrice && obj.price<=endPrice){
|
||||||
rets << obj;
|
rets << obj;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user