默认房源数量改成5个

This commit is contained in:
majintao
2024-09-23 13:06:27 +08:00
parent 786ea3df36
commit 673b0d656c
@@ -178,6 +178,7 @@ public class PropertyController {
private FileDao fileDao = FileDao.getInstance();
private static final int DEFAULT_PAGE_SIZE = 20;
private static final int DEFAULT_HOUSE_COUNT = 5;
private static final String[] PROPERTY_SEARCH_API_FIELDS = {"address", "city", "region", "name", "lat2", "lng2", "lat", "lng", "block", "estateType2", "addrAlias", "alias"};
static final int BAI_DU_GEO = 1;// °ÙÈÏµ×ø±ê
static final int GAO_DE_GEO = 2;// ¸ßµÂÏµ×ø±ê
@@ -2780,7 +2781,7 @@ public class PropertyController {
return mav;
}
if (model.getMax() == null || model.getMax() < 1) {
model.setMax(DEFAULT_PAGE_SIZE);
model.setMax(DEFAULT_HOUSE_COUNT);
} else if (model.getMax() > 100) {
model.setMax(100);
}