北交所样本查询
This commit is contained in:
+8
-2
@@ -1285,8 +1285,7 @@ public class CzbankSampleServiceImpl implements CzbankSampleService {
|
|||||||
Integer minPrice = null;
|
Integer minPrice = null;
|
||||||
Integer maxPrice = null;
|
Integer maxPrice = null;
|
||||||
if (districtStat != null && districtStat.getAvgPrice() > 0) {
|
if (districtStat != null && districtStat.getAvgPrice() > 0) {
|
||||||
//int avgPrice = districtStat.getAvgPrice();
|
int avgPrice = districtStat.getAvgPrice();
|
||||||
int avgPrice = new BigDecimal(districtStat.getAvgPrice()).multiply(new BigDecimal(0.9)).intValue();
|
|
||||||
minPrice = (int) (avgPrice * 0.8);
|
minPrice = (int) (avgPrice * 0.8);
|
||||||
maxPrice = (int) (avgPrice * 1.2);
|
maxPrice = (int) (avgPrice * 1.2);
|
||||||
houseQuery.add(new QueryParam("avgPrice", QueryParam.GREATER_THAN_EQUAL_OPERATOR, minPrice));//0.85
|
houseQuery.add(new QueryParam("avgPrice", QueryParam.GREATER_THAN_EQUAL_OPERATOR, minPrice));//0.85
|
||||||
@@ -1407,6 +1406,13 @@ public class CzbankSampleServiceImpl implements CzbankSampleService {
|
|||||||
// sample.setCity(fangjiaOfficialAreaMap.getCityCode());
|
// sample.setCity(fangjiaOfficialAreaMap.getCityCode());
|
||||||
// sample.setDistrict(fangjiaOfficialAreaMap.getDistrictCode());
|
// sample.setDistrict(fangjiaOfficialAreaMap.getDistrictCode());
|
||||||
// }
|
// }
|
||||||
|
}
|
||||||
|
// 根据2B与均价的系数进行判断
|
||||||
|
for (SampleWrapper sample : samples) {
|
||||||
|
if (districtStat.getAvg_price_2b() != null) {
|
||||||
|
sample.setUnitPrice((int) (sample.getUnitPrice() * (districtStat.getAvg_price_2b() * 1.00 / districtStat.getAvgPrice())));
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
return samples;
|
return samples;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user