Commit b2070f43 authored by lixuan's avatar lixuan

feat: 房源

parent 571fbb59
......@@ -262,6 +262,13 @@ public class HouseResourceServiceImpl implements HouseResourceService {
BeanUtils.copyProperties(houseResource, houseResourcePage);
pageList.add(houseResourcePage);
}
pageList.forEach(x -> x.setIncome(businessEntityInfoMapper.selectYearSellByHouseResourceId(x.getId())));
if (Objects.nonNull(query.getYearSellMin())) {
pageList = pageList.stream().filter(x -> x.getIncome().compareTo(query.getYearSellMin()) >= 0).collect(Collectors.toList());
}
if (Objects.nonNull(query.getYearSellMax())) {
pageList = pageList.stream().filter(x -> x.getIncome().compareTo(query.getYearSellMax()) <= 0).collect(Collectors.toList());
}
houseResourceProfileGraph.setHouseResources(handleHouseList(pageList));
result.add(houseResourceProfileGraph);
}
......
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