Commit 4f8b071c authored by lixuan's avatar lixuan

feat: 房源

parent 424c7c7c
Pipeline #145587 canceled with stages
...@@ -386,11 +386,10 @@ public class HouseResourceServiceImpl implements HouseResourceService { ...@@ -386,11 +386,10 @@ public class HouseResourceServiceImpl implements HouseResourceService {
@Override @Override
public BusinessEntityStatisticsDetail businessEntityStatistics(HouseResourcePageQuery query) { public BusinessEntityStatisticsDetail businessEntityStatistics(HouseResourcePageQuery query) {
List<HouseResourcePage> listPages = houseResourceMapper.selectProfileGraph(query); List<HouseResourcePage> list = houseResourceMapper.selectProfileGraph(query);
if (CollectionUtils.isEmpty(listPages)) { if (CollectionUtils.isEmpty(list)) {
return new BusinessEntityStatisticsDetail(); return new BusinessEntityStatisticsDetail();
} }
List<HouseResourcePage> list = handleHouseList(listPages, true);
BusinessEntityStatisticsDetail businessEntityStatisticsDetail = new BusinessEntityStatisticsDetail(); BusinessEntityStatisticsDetail businessEntityStatisticsDetail = new BusinessEntityStatisticsDetail();
businessEntityStatisticsDetail.setLyCount(list.stream().filter(x -> x.getType() == 1).count()); businessEntityStatisticsDetail.setLyCount(list.stream().filter(x -> x.getType() == 1).count());
businessEntityStatisticsDetail.setJdCount(list.stream().filter(x -> x.getType() == 4).count()); businessEntityStatisticsDetail.setJdCount(list.stream().filter(x -> x.getType() == 4).count());
......
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