放大样本过滤条件
This commit is contained in:
+23
-6
@@ -1025,9 +1025,29 @@ public class HouseController {
|
||||
} else {
|
||||
pager.setPageSize(5);
|
||||
}
|
||||
if (model.getPrice() != null) {
|
||||
query.setStartPrice((int) (model.getPrice() * 0.9));
|
||||
query.setEndPrice((int) (model.getPrice() * 1.1));
|
||||
if ("1".equals(model.getHouseType())) {
|
||||
if ("1".equals(model.getPropertyType())) {
|
||||
cat = "office_rent";
|
||||
} else if ("2".equals(model.getPropertyType())) {
|
||||
cat = "shop_rent";
|
||||
} else {
|
||||
cat = "rent";
|
||||
}
|
||||
if (model.getPrice() != null) {
|
||||
query.setStartPrice((int) (model.getPrice() * 0.5 * 30));
|
||||
query.setEndPrice((int) (model.getPrice() * 1.5 * 30));
|
||||
}
|
||||
} else {
|
||||
if ("1".equals(model.getPropertyType())) {
|
||||
cat = "office_sell";
|
||||
}
|
||||
if ("2".equals(model.getPropertyType())) {
|
||||
cat = "shop_sell";
|
||||
}
|
||||
if (model.getPrice() != null) {
|
||||
query.setStartPrice((int) (model.getPrice() * 0.5));
|
||||
query.setEndPrice((int) (model.getPrice() * 1.5));
|
||||
}
|
||||
}
|
||||
query.setPager(pager);
|
||||
query.setSortField("p_date");
|
||||
@@ -1085,9 +1105,6 @@ public class HouseController {
|
||||
seawater.setDirection(house.getDirection());
|
||||
seawater.setFloor(house.getFloor() == null || house.getFloor() == 0 ? null : house.getFloor());
|
||||
seawater.setMaxFloor(house.getHeight() == null || house.getHeight() == 0 ? null : house.getHeight());
|
||||
// seawater.setRoom(house.getRoom() == null || house.getRoom() == 0 ? null : house.getRoom());
|
||||
// seawater.setHall(house.getHall() == null || house.getHall() == 0 ? null : house.getHall());
|
||||
// seawater.setToilet(house.getToilet() == null || house.getToilet() == 0 ? null : house.getToilet());
|
||||
seawater.setDayUnitPrice(house.getDayUnitPrice() == null || house.getDayUnitPrice() == 0 ? null : house.getDayUnitPrice());
|
||||
seawater.setRentType(house.getRentType());
|
||||
seawater.setPayType(house.getPayType());
|
||||
|
||||
Reference in New Issue
Block a user