Commit 5eb66ec8 authored by lixuan's avatar lixuan

feat: 房源

parent 8fd1b67e
Pipeline #145589 canceled with stages
......@@ -286,7 +286,9 @@ public class HouseResourceServiceImpl implements HouseResourceService {
houseResourceProfileGraph.setPosition(gridRegion.getPosition());
}
}
houseResourceProfileGraph.setJyArea(v.stream().map(HouseResourcePage::getHouseArea).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
if (Objects.nonNull(houseResourceProfileGraph.getJzArea()) && Objects.nonNull(houseResourceProfileGraph.getKzArea())) {
houseResourceProfileGraph.setJyArea(houseResourceProfileGraph.getJzArea().subtract(houseResourceProfileGraph.getKzArea()));
}
houseResourceProfileGraph.setKzCount(v.stream().filter(x -> x.getHouseResourceType() == HouseEnums.HouseResourceTypeEnum.KZ.getCode()).count());
houseResourceProfileGraph.setKzArea(v.stream().filter(x -> x.getHouseResourceType() == HouseEnums.HouseResourceTypeEnum.KZ.getCode()).map(HouseResourcePage::getHouseArea).reduce(BigDecimal.ZERO, BigDecimal::add));
houseResourceProfileGraph.setAreaTotal(v.stream().map(HouseResourcePage::getHouseArea).reduce(BigDecimal.ZERO, BigDecimal::add));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment