Commit 05309fd3 authored by lixuan's avatar lixuan

Merge branch 'dev-lx' into dev

parents 19ff7c4c b2070f43
Pipeline #144296 failed with stages
in 30 minutes and 1 second
...@@ -262,6 +262,13 @@ public class HouseResourceServiceImpl implements HouseResourceService { ...@@ -262,6 +262,13 @@ public class HouseResourceServiceImpl implements HouseResourceService {
BeanUtils.copyProperties(houseResource, houseResourcePage); BeanUtils.copyProperties(houseResource, houseResourcePage);
pageList.add(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)); houseResourceProfileGraph.setHouseResources(handleHouseList(pageList));
result.add(houseResourceProfileGraph); 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