区域均价为空
This commit is contained in:
+4
@@ -1033,8 +1033,12 @@ class BigdataCitypriceBatch extends BaseBatch{
|
||||
if(regionPriceMap){
|
||||
for(def m : datas){
|
||||
def regionAvgPrice = regionPriceMap.get(m.region)
|
||||
if(regionAvgPrice){
|
||||
def val = (m.avg_price-regionAvgPrice)*100/regionAvgPrice
|
||||
distRegionRateMap.put(m.comm_id, DataHandleUtils.getDoubleRound(4, val))
|
||||
}else{
|
||||
println m.region+" 无区域均价"
|
||||
}
|
||||
}
|
||||
}
|
||||
return distRegionRateMap;
|
||||
|
||||
Reference in New Issue
Block a user