|
|
|
@ -48,9 +48,9 @@ public class BlocksServiceImpl extends ServiceImpl<BlocksMapper, Blocks> impleme
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 住宅均价
|
|
|
|
|
BigDecimal preSaleHousePrice = baseMapper.getHouseAvgPrice(1); |
|
|
|
|
BigDecimal preSaleHousePrice = baseMapper.getHouseAvgPrice("住宅"); |
|
|
|
|
//商业均价
|
|
|
|
|
BigDecimal preSaleBusinessPrice = baseMapper.getHouseAvgPrice(2); |
|
|
|
|
BigDecimal preSaleBusinessPrice = baseMapper.getHouseAvgPrice("商业"); |
|
|
|
|
saleInfo.setPreSaleHousePrice(preSaleHousePrice.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue()); |
|
|
|
|
saleInfo.setPreSaleBusinessPrice(preSaleBusinessPrice.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue()); |
|
|
|
|
return saleInfo; |
|
|
|
|