北交所样本查询
This commit is contained in:
+11
-11
@@ -322,10 +322,10 @@ public class ComprehensiveQueryController {
|
||||
|
||||
}
|
||||
// 价格下调10%
|
||||
if (dto.getAvgPrice() != null) {
|
||||
int avgPrice = new BigDecimal(dto.getAvgPrice()).multiply(new BigDecimal(0.9)).intValue();
|
||||
dto.setAvgPrice(avgPrice);
|
||||
}
|
||||
// if (dto.getAvgPrice() != null) {
|
||||
// int avgPrice = new BigDecimal(dto.getAvgPrice()).multiply(new BigDecimal(0.9)).intValue();
|
||||
// dto.setAvgPrice(avgPrice);
|
||||
// }
|
||||
// 非住宅无法估值
|
||||
|
||||
// 保存小区均价的返回结果
|
||||
@@ -354,12 +354,12 @@ public class ComprehensiveQueryController {
|
||||
|
||||
}
|
||||
// 价格下调10%
|
||||
Map<String, Object> addressValue = houseValueInformation.getAddressValue();
|
||||
if (addressValue != null && addressValue.get("totalPrice") != null && addressValue.get("avgPrice") != null) {
|
||||
int evaluatePrice = new BigDecimal((Integer) addressValue.get("avgPrice")).multiply(new BigDecimal(0.9)).intValue();
|
||||
addressValue.put("avgPrice", evaluatePrice);
|
||||
addressValue.put("totalPrice", new BigDecimal(evaluatePrice * model.getSize()).intValue());
|
||||
}
|
||||
// Map<String, Object> addressValue = houseValueInformation.getAddressValue();
|
||||
// if (addressValue != null && addressValue.get("totalPrice") != null && addressValue.get("avgPrice") != null) {
|
||||
// int evaluatePrice = new BigDecimal((Integer) addressValue.get("avgPrice")).multiply(new BigDecimal(0.9)).intValue();
|
||||
// addressValue.put("avgPrice", evaluatePrice);
|
||||
// addressValue.put("totalPrice", new BigDecimal(evaluatePrice * model.getSize()).intValue());
|
||||
// }
|
||||
// houseValueInformation.setAddressValue(modelAndView);
|
||||
|
||||
//房源样本
|
||||
@@ -383,7 +383,7 @@ public class ComprehensiveQueryController {
|
||||
}
|
||||
// 此处慢
|
||||
long start = System.currentTimeMillis();
|
||||
List<Collateral> collaterals = czbankSampleService.findSample2(querys, sampleQuery.getMax());
|
||||
List<Collateral> collaterals = czbankSampleService.findSampleForBse(querys, sampleQuery.getMax());
|
||||
long end = System.currentTimeMillis();
|
||||
System.out.println("用时:" + (end - start));
|
||||
Collateral collateral = collaterals.get(0);
|
||||
|
||||
Reference in New Issue
Block a user