Commit a5eab0bd authored by lixuan's avatar lixuan

feat: 房源

parent ee1100dd
Pipeline #143604 failed with stages
in 30 minutes and 8 seconds
...@@ -168,6 +168,10 @@ public class HouseResourceServiceImpl implements HouseResourceService { ...@@ -168,6 +168,10 @@ public class HouseResourceServiceImpl implements HouseResourceService {
if (StringUtils.hasText(wgName)) { if (StringUtils.hasText(wgName)) {
houseResourceProfileGraph.setWgName(wgName); houseResourceProfileGraph.setWgName(wgName);
} }
String jzAreaByCode = gridRegionMapper.getJzAreaByCode(k);
if (StringUtils.hasText(jzAreaByCode)) {
houseResourceProfileGraph.setJzArea(new BigDecimal(jzAreaByCode));
}
houseResourceProfileGraph.setJyArea(v.stream().map(HouseResourcePage::getHouseArea).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add)); houseResourceProfileGraph.setJyArea(v.stream().map(HouseResourcePage::getHouseArea).filter(Objects::nonNull).reduce(BigDecimal.ZERO, BigDecimal::add));
List<HouseResourcePage> houseResourcePages = handleHouseList(v); List<HouseResourcePage> houseResourcePages = handleHouseList(v);
houseResourceProfileGraph.setHouseResources(houseResourcePages.stream().sorted(Comparator.comparing(HouseResourcePage::getHouseNumber)).collect(Collectors.toList())); houseResourceProfileGraph.setHouseResources(houseResourcePages.stream().sorted(Comparator.comparing(HouseResourcePage::getHouseNumber)).collect(Collectors.toList()));
......
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