Commit 5fcfd0fd authored by lixuan's avatar lixuan

feat: 房源

parent bc55252b
...@@ -54,4 +54,6 @@ public class BusinessEntityStatisticsDetail { ...@@ -54,4 +54,6 @@ public class BusinessEntityStatisticsDetail {
private BigDecimal fwyCount = BigDecimal.ZERO; private BigDecimal fwyCount = BigDecimal.ZERO;
private BigDecimal qtjjfzCount = BigDecimal.ZERO; private BigDecimal qtjjfzCount = BigDecimal.ZERO;
private BigDecimal jjzl = BigDecimal.ZERO;
} }
...@@ -317,6 +317,14 @@ public class HouseResourceServiceImpl implements HouseResourceService { ...@@ -317,6 +317,14 @@ public class HouseResourceServiceImpl implements HouseResourceService {
businessEntityStatisticsDetail.setQtjjfzCount(businessEntitySells.stream().map(BusinessEntitySell::getYearSell).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add)); businessEntityStatisticsDetail.setQtjjfzCount(businessEntitySells.stream().map(BusinessEntitySell::getYearSell).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
} }
} }
businessEntityStatisticsDetail.setJjzl(businessEntityStatisticsDetail.getGyCount()
.add(businessEntityStatisticsDetail.getJzyCount())
.add(businessEntityStatisticsDetail.getPfCount())
.add(businessEntityStatisticsDetail.getLsCount())
.add(businessEntityStatisticsDetail.getZsCount())
.add(businessEntityStatisticsDetail.getCyCount())
.add(businessEntityStatisticsDetail.getFwyCount())
.add(businessEntityStatisticsDetail.getQtjjfzCount()));
return businessEntityStatisticsDetail; return businessEntityStatisticsDetail;
} }
......
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