Commit b0c5f882 authored by lixuan's avatar lixuan

feat: 房源

parent 8003eb35
Pipeline #145039 failed with stages
in 6 minutes and 37 seconds
......@@ -171,7 +171,7 @@ public class HouseResourceServiceImpl implements HouseResourceService {
}
IPage<HouseResourcePage> page = houseResourceMapper.selectPage(new Page<>(query.getPageNum(), query.getPageSize()), query);
List<HouseResourcePage> records = handleHouseList(page.getRecords());
page.setRecords(records);
page.setRecords(records.stream().sorted(Comparator.comparing(HouseResourcePage::getIncome, Comparator.nullsFirst(BigDecimal::compareTo))).collect(Collectors.toList()));
return page;
}
......
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