// Path: src/com/easyhousing/dao/BuildingInfoDao.java
// public interface BuildingInfoDao {
// 	public void insertBuildingInfo(BuildingInfo u);
// 	public int deleteBuildingInfo(BuildingInfo u);
// 	public int updateBuildingInfo(BuildingInfo u);
// 	public BuildingInfo selectBuildingInfo(BuildingInfo u);
// 	public BuildingInfo selectBuildingById(int id);
// 	public List<BuildingInfo> selectBuilding(String area, int lowPrice, int highPrice);
// 	public List<BuildingInfo> selectAll();
// }
// 
// Path: src/com/easyhousing/model/BuildingInfo.java
// public class BuildingInfo {
// 	
// 	private String buildingAddress;
// 	private int buildingId;
// 	private String buildingName;
// 	private String buildingDecoration;
// 	private int buildingMaxArea;
// 	private int buildingMinArea;
// 	private String buildingNeighbourhood;
// 	private int buildingReferencePrice;
// 	private String buildingSaleState;
// 	private Date buildingTimeHanded;
// 	
// 	public String getBuildingAddress() {
// 		return buildingAddress;
// 	}
// 	public void setBuildingAddress(String buildingAddress) {
// 		this.buildingAddress = buildingAddress;
// 	}
// 	public int getBuildingId() {
// 		return buildingId;
// 	}
// 	public void setBuildingId(int buildingId) {
// 		this.buildingId = buildingId;
// 	}
// 	public String getBuildingName() {
// 		return buildingName;
// 	}
// 	public void setBuildingName(String buildingName) {
// 		this.buildingName = buildingName;
// 	}
// 	public String getBuildingDecoration() {
// 		return buildingDecoration;
// 	}
// 	public void setBuildingDecoration(String buildingDecoration) {
// 		this.buildingDecoration = buildingDecoration;
// 	}
// 	public int getBuildingMaxArea() {
// 		return buildingMaxArea;
// 	}
// 	public void setBuildingMaxArea(int buildingMaxArea) {
// 		this.buildingMaxArea = buildingMaxArea;
// 	}
// 	public int getBuildingMinArea() {
// 		return buildingMinArea;
// 	}
// 	public void setBuildingMinArea(int buildingMinArea) {
// 		this.buildingMinArea = buildingMinArea;
// 	}
// 	public String getBuildingNeighbourhood() {
// 		return buildingNeighbourhood;
// 	}
// 	public void setBuildingNeighbourhood(String buildingNeighbourhood) {
// 		this.buildingNeighbourhood = buildingNeighbourhood;
// 	}
// 	public int getBuildingReferencePrice() {
// 		return buildingReferencePrice;
// 	}
// 	public void setBuildingReferencePrice(int buildingReferencePrice) {
// 		this.buildingReferencePrice = buildingReferencePrice;
// 	}
// 	public String getBuildingSaleState() {
// 		return buildingSaleState;
// 	}
// 	public void setBuildingSaleState(String buildingSaleState) {
// 		this.buildingSaleState = buildingSaleState;
// 	}
// 	public Date getBuildingTimeHanded() {
// 		return buildingTimeHanded;
// 	}
// 	public void setBuildingTimeHanded(Date buildingTimeHanded) {
// 		this.buildingTimeHanded = buildingTimeHanded;
// 	}
// }
// 
// Path: src/com/easyhousing/service/BuildingSearch.java
// public interface BuildingSearch {
// 	// 地址、最低价、最高价作为关键字获得对应的楼盘列表
// 	public List<BuildingInfo> searchBuilding(String Address, int lowPrice, int highPrice);
// 	public BuildingInfo searchBuildingById(int id);
// }


import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.easyhousing.dao.BuildingInfoDao;
import com.easyhousing.model.BuildingInfo;
import com.easyhousing.service.BuildingSearch;
package com.easyhousing.service.impl;




@Service("buildingSearch")
public class BuildingSearchImpl implements BuildingSearch {
	
	@Autowired
	private BuildingInfoDao buildingInfoDao;

	@Override
	public List<BuildingInfo> searchBuilding(String Address, int lowPrice, int highPrice) {
		return buildingInfoDao.selectBuilding(Address, lowPrice, highPrice);
	}

	@Override
	public BuildingInfo searchBuildingById(int id) {
// Path: src/com/easyhousing/dao/BuildingInfoDao.java
// public interface BuildingInfoDao {
// 	public void insertBuildingInfo(BuildingInfo u);
// 	public int deleteBuildingInfo(BuildingInfo u);
// 	public int updateBuildingInfo(BuildingInfo u);
// 	public BuildingInfo selectBuildingInfo(BuildingInfo u);
// 	public BuildingInfo selectBuildingById(int id);
// 	public List<BuildingInfo> selectBuilding(String area, int lowPrice, int highPrice);
// 	public List<BuildingInfo> selectAll();
// }
// 
// Path: src/com/easyhousing/model/BuildingInfo.java
// public class BuildingInfo {
// 	
// 	private String buildingAddress;
// 	private int buildingId;
// 	private String buildingName;
// 	private String buildingDecoration;
// 	private int buildingMaxArea;
// 	private int buildingMinArea;
// 	private String buildingNeighbourhood;
// 	private int buildingReferencePrice;
// 	private String buildingSaleState;
// 	private Date buildingTimeHanded;
// 	
// 	public String getBuildingAddress() {
// 		return buildingAddress;
// 	}
// 	public void setBuildingAddress(String buildingAddress) {
// 		this.buildingAddress = buildingAddress;
// 	}
// 	public int getBuildingId() {
// 		return buildingId;
// 	}
// 	public void setBuildingId(int buildingId) {
// 		this.buildingId = buildingId;
// 	}
// 	public String getBuildingName() {
// 		return buildingName;
// 	}
// 	public void setBuildingName(String buildingName) {
// 		this.buildingName = buildingName;
// 	}
// 	public String getBuildingDecoration() {
// 		return buildingDecoration;
// 	}
// 	public void setBuildingDecoration(String buildingDecoration) {
// 		this.buildingDecoration = buildingDecoration;
// 	}
// 	public int getBuildingMaxArea() {
// 		return buildingMaxArea;
// 	}
// 	public void setBuildingMaxArea(int buildingMaxArea) {
// 		this.buildingMaxArea = buildingMaxArea;
// 	}
// 	public int getBuildingMinArea() {
// 		return buildingMinArea;
// 	}
// 	public void setBuildingMinArea(int buildingMinArea) {
// 		this.buildingMinArea = buildingMinArea;
// 	}
// 	public String getBuildingNeighbourhood() {
// 		return buildingNeighbourhood;
// 	}
// 	public void setBuildingNeighbourhood(String buildingNeighbourhood) {
// 		this.buildingNeighbourhood = buildingNeighbourhood;
// 	}
// 	public int getBuildingReferencePrice() {
// 		return buildingReferencePrice;
// 	}
// 	public void setBuildingReferencePrice(int buildingReferencePrice) {
// 		this.buildingReferencePrice = buildingReferencePrice;
// 	}
// 	public String getBuildingSaleState() {
// 		return buildingSaleState;
// 	}
// 	public void setBuildingSaleState(String buildingSaleState) {
// 		this.buildingSaleState = buildingSaleState;
// 	}
// 	public Date getBuildingTimeHanded() {
// 		return buildingTimeHanded;
// 	}
// 	public void setBuildingTimeHanded(Date buildingTimeHanded) {
// 		this.buildingTimeHanded = buildingTimeHanded;
// 	}
// }
// 
// Path: src/com/easyhousing/service/BuildingSearch.java
// public interface BuildingSearch {
// 	// 地址、最低价、最高价作为关键字获得对应的楼盘列表
// 	public List<BuildingInfo> searchBuilding(String Address, int lowPrice, int highPrice);
// 	public BuildingInfo searchBuildingById(int id);
// }


// Path: src/com/easyhousing/service/impl/BuildingSearchImpl.java
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.easyhousing.dao.BuildingInfoDao;
import com.easyhousing.model.BuildingInfo;
import com.easyhousing.service.BuildingSearch;

package com.easyhousing.service.impl;




@Service("buildingSearch")
public class BuildingSearchImpl implements BuildingSearch {
	
	@Autowired
	private BuildingInfoDao buildingInfoDao;

	@Override
	public List<BuildingInfo> searchBuilding(String Address, int lowPrice, int highPrice) {
		return buildingInfoDao.selectBuilding(Address, lowPrice, highPrice);
	}

	@Override
	public BuildingInfo searchBuildingById(int id) {
		return buildingInfoDao.selectBuildingById(id);