// Path: src/com/easyhousing/dao/BuildingPicDao.java
// public interface BuildingPicDao {
// 	public void insertBuildingPic(BuildingPic u);
// 	public int deleteBuildingPic(BuildingPic u);
// 	public int updateBuildingPic(BuildingPic u);
// 	public BuildingPic selectBuildingPic(BuildingPic u);
// 	public List<String> selectBuildingPicByBuildingId(int id);
// 	public List<BuildingPic> 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.ArrayList;
import java.util.List;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import com.easyhousing.dao.BuildingPicDao;
import com.easyhousing.model.BuildingInfo;
import com.easyhousing.service.BuildingSearch;
	                sbuf.append('u');  
	                sbuf.append(hex[(ch >>> 8)]);  
	                sbuf.append(hex[(0x00FF & ch)]);  
	            }  
	        }  
	        return sbuf.toString();  
	    }  
	    public static String unescape(String s) {  
	        StringBuffer sbuf = new StringBuffer();  
	        int i = 0;  
	        int len = s.length();  
	        while (i < len) {  
	            int ch = s.charAt(i);  
	            if (ch == '+') {                        // + : map to ' '   
	                sbuf.append(' ');  
	            } else if ('A' <= ch && ch <= 'Z') {    // 'A'..'Z' : as it was  
	                sbuf.append((char)ch);  
	            } else if ('a' <= ch && ch <= 'z') {    // 'a'..'z' : as it was  
	                sbuf.append((char)ch);  
	            } else if ('0' <= ch && ch <= '9') {    // '0'..'9' : as it was  
	                sbuf.append((char)ch);  
	            } else if (ch == '-' || ch == '_'       // unreserved : as it was  
	                || ch == '.' || ch == '!'  
	                || ch == '~' || ch == '*'  
	                || ch == '\'' || ch == '('  
	                || ch == ')') {  
	                sbuf.append((char)ch);  
	            } else if (ch == '%') {  
	                int cint = 0;  
	                if ('u' != s.charAt(i+1)) {         // %XX : map to ascii(XX)  
// Path: src/com/easyhousing/dao/BuildingPicDao.java
// public interface BuildingPicDao {
// 	public void insertBuildingPic(BuildingPic u);
// 	public int deleteBuildingPic(BuildingPic u);
// 	public int updateBuildingPic(BuildingPic u);
// 	public BuildingPic selectBuildingPic(BuildingPic u);
// 	public List<String> selectBuildingPicByBuildingId(int id);
// 	public List<BuildingPic> 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/controller/BuildingSelectController.java
import java.util.ArrayList;
import java.util.List;
import javax.servlet.http.Cookie;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.servlet.ModelAndView;
import com.easyhousing.dao.BuildingPicDao;
import com.easyhousing.model.BuildingInfo;
import com.easyhousing.service.BuildingSearch;

	                sbuf.append('u');  
	                sbuf.append(hex[(ch >>> 8)]);  
	                sbuf.append(hex[(0x00FF & ch)]);  
	            }  
	        }  
	        return sbuf.toString();  
	    }  
	    public static String unescape(String s) {  
	        StringBuffer sbuf = new StringBuffer();  
	        int i = 0;  
	        int len = s.length();  
	        while (i < len) {  
	            int ch = s.charAt(i);  
	            if (ch == '+') {                        // + : map to ' '   
	                sbuf.append(' ');  
	            } else if ('A' <= ch && ch <= 'Z') {    // 'A'..'Z' : as it was  
	                sbuf.append((char)ch);  
	            } else if ('a' <= ch && ch <= 'z') {    // 'a'..'z' : as it was  
	                sbuf.append((char)ch);  
	            } else if ('0' <= ch && ch <= '9') {    // '0'..'9' : as it was  
	                sbuf.append((char)ch);  
	            } else if (ch == '-' || ch == '_'       // unreserved : as it was  
	                || ch == '.' || ch == '!'  
	                || ch == '~' || ch == '*'  
	                || ch == '\'' || ch == '('  
	                || ch == ')') {  
	                sbuf.append((char)ch);  
	            } else if (ch == '%') {  
	                int cint = 0;  
	                if ('u' != s.charAt(i+1)) {         // %XX : map to ascii(XX)  
	                    cint = (cint << 4) | val[s.charAt(i+1)];  