Commit 43588170 authored by lixuan's avatar lixuan

feat: 房源

parent f96cf5b6
...@@ -167,7 +167,8 @@ public class HouseResourceServiceImpl implements HouseResourceService { ...@@ -167,7 +167,8 @@ public class HouseResourceServiceImpl implements HouseResourceService {
if (StringUtils.hasText(wgName)) { if (StringUtils.hasText(wgName)) {
houseResourceProfileGraph.setWgName(wgName); houseResourceProfileGraph.setWgName(wgName);
} }
houseResourceProfileGraph.setHouseResources(handleHouseList(v)); List<HouseResourcePage> houseResourcePages = handleHouseList(v);
houseResourceProfileGraph.setHouseResources(houseResourcePages.stream().sorted(Comparator.comparing(HouseResourcePage::getHouseNumber)).collect(Collectors.toList()));
resourceProfileGraphList.add(houseResourceProfileGraph); resourceProfileGraphList.add(houseResourceProfileGraph);
}); });
return resourceProfileGraphList.stream().sorted(Comparator.comparing(HouseResourceProfileGraph::getId)).collect(Collectors.toList()); return resourceProfileGraphList.stream().sorted(Comparator.comparing(HouseResourceProfileGraph::getId)).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