// Path: src/main/java/com/phn/bookhouse/dao/HouseDao.java
// public interface HouseDao {
// 	public House loginJudge(House house);
// 	/**
// 	 * @param house
// 	 * @return
// 	 */
// 	public int updateHouseInfo(House house);
// 	/**
// 	 * @param house
// 	 * @return
// 	 */
// 	public int updateHousePass(House house);
// 
// 	/**
// 	 * @param houseid
// 	 * @return
// 	 */
// 	public House selectHouseById(long houseid);
// 	/**
// 	 * @author pan
// 	 * @param loginHouse
// 	 */
// 	public void updateHouseLogo(House loginHouse);
// 	/**
// 	 * @author pan
// 	 * @param house
// 	 */
// 	public List<House> registJudge(House house);
// 	/**
// 	 * @author pan
// 	 * @param house
// 	 * @return
// 	 */
// 	public int regist(House house);
// }
// 
// Path: src/main/java/com/phn/bookhouse/entity/House.java
// public class House {
// 	private long hous_id;
// 	private String hous_login_name;
// 	private String hous_login_email;
// 	private String hous_login_password;
// 	private String hous_name;
// 	private String hous_logo;
// 	private String hous_phone;
// 	private String hous_company_name;
// 	private String hous_company_addr;
// 	private double hous_score_description;
// 	private double hous_score_service;
// 	private double hous_score_speed;
// 
// 	public long getHous_id() {
// 		return hous_id;
// 	}
// 
// 	public void setHous_id(long hous_id) {
// 		this.hous_id = hous_id;
// 	}
// 
// 	public String getHous_login_name() {
// 		return hous_login_name;
// 	}
// 
// 	public void setHous_login_name(String hous_login_name) {
// 		this.hous_login_name = hous_login_name;
// 	}
// 
// 	public String getHous_login_email() {
// 		return hous_login_email;
// 	}
// 
// 	public void setHous_login_email(String hous_login_email) {
// 		this.hous_login_email = hous_login_email;
// 	}
// 
// 	public String getHous_login_password() {
// 		return hous_login_password;
// 	}
// 
// 	public void setHous_login_password(String hous_login_password) {
// 		this.hous_login_password = hous_login_password;
// 	}
// 
// 	public String getHous_name() {
// 		return hous_name;
// 	}
// 
// 	public void setHous_name(String hous_name) {
// 		this.hous_name = hous_name;
// 	}
// 
// 	public String getHous_logo() {
// 		return hous_logo;
// 	}
// 
// 	public void setHous_logo(String hous_logo) {
// 		this.hous_logo = hous_logo;
// 	}
// 
// 	public String getHous_phone() {
// 		return hous_phone;
// 	}
// 
// 	public void setHous_phone(String hous_phone) {
// 		this.hous_phone = hous_phone;
// 	}
// 
// 	public String getHous_company_name() {
// 		return hous_company_name;
// 	}
// 
// 	public void setHous_company_name(String hous_company_name) {
// 		this.hous_company_name = hous_company_name;
// 	}
// 
// 	public String getHous_company_addr() {
// 		return hous_company_addr;
// 	}
// 
// 	public void setHous_company_addr(String hous_company_addr) {
// 		this.hous_company_addr = hous_company_addr;
// 	}
// 
// 	public double getHous_score_description() {
// 		return hous_score_description;
// 	}
// 
// 	public void setHous_score_description(double hous_score_description) {
// 		this.hous_score_description = hous_score_description;
// 	}
// 
// 	public double getHous_score_service() {
// 		return hous_score_service;
// 	}
// 
// 	public void setHous_score_service(double hous_score_service) {
// 		this.hous_score_service = hous_score_service;
// 	}
// 
// 	public double getHous_score_speed() {
// 		return hous_score_speed;
// 	}
// 
// 	public void setHous_score_speed(double hous_score_speed) {
// 		this.hous_score_speed = hous_score_speed;
// 	}
// 
// }
// 
// Path: src/main/java/com/phn/bookhouse/service/HouseService.java
// public interface HouseService {
// 	public int addHouse(House house);
// 	public int removeHouseById(long houseid);
// 	public House findHouseById(long houseid);
// 	public House loginJudge(String housename,String housepass);
// 	public List<House> findHouseByName(String housename);
// 	public int editHouseInfo(House house);
// 	public int editHousePass(House house);
// 	/**
// 	 * @author pan
// 	 * @param loginHouse
// 	 */
// 	public void editHouseLogo(House loginHouse);
// 	/**
// 	 * @author pan
// 	 * @param house
// 	 */
// 	public boolean registJudge(House house);
// 	/**
// 	 * @author pan
// 	 * @param house
// 	 * @return
// 	 */
// 	public int regist(House house);
// }


import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.phn.bookhouse.dao.HouseDao;
import com.phn.bookhouse.entity.House;
import com.phn.bookhouse.service.HouseService;
/**
 * 
 */
package com.phn.bookhouse.service.impl;










/**
 * @file HouseServiceImpl.java
 * @author pan
 * @date 2014年11月13日
 * @email panhainan@yeah.net
 */
@Service("houseService")
public class HouseServiceImpl implements HouseService { 
	@Autowired
	private HouseDao houseDao;
	@Override
// Path: src/main/java/com/phn/bookhouse/dao/HouseDao.java
// public interface HouseDao {
// 	public House loginJudge(House house);
// 	/**
// 	 * @param house
// 	 * @return
// 	 */
// 	public int updateHouseInfo(House house);
// 	/**
// 	 * @param house
// 	 * @return
// 	 */
// 	public int updateHousePass(House house);
// 
// 	/**
// 	 * @param houseid
// 	 * @return
// 	 */
// 	public House selectHouseById(long houseid);
// 	/**
// 	 * @author pan
// 	 * @param loginHouse
// 	 */
// 	public void updateHouseLogo(House loginHouse);
// 	/**
// 	 * @author pan
// 	 * @param house
// 	 */
// 	public List<House> registJudge(House house);
// 	/**
// 	 * @author pan
// 	 * @param house
// 	 * @return
// 	 */
// 	public int regist(House house);
// }
// 
// Path: src/main/java/com/phn/bookhouse/entity/House.java
// public class House {
// 	private long hous_id;
// 	private String hous_login_name;
// 	private String hous_login_email;
// 	private String hous_login_password;
// 	private String hous_name;
// 	private String hous_logo;
// 	private String hous_phone;
// 	private String hous_company_name;
// 	private String hous_company_addr;
// 	private double hous_score_description;
// 	private double hous_score_service;
// 	private double hous_score_speed;
// 
// 	public long getHous_id() {
// 		return hous_id;
// 	}
// 
// 	public void setHous_id(long hous_id) {
// 		this.hous_id = hous_id;
// 	}
// 
// 	public String getHous_login_name() {
// 		return hous_login_name;
// 	}
// 
// 	public void setHous_login_name(String hous_login_name) {
// 		this.hous_login_name = hous_login_name;
// 	}
// 
// 	public String getHous_login_email() {
// 		return hous_login_email;
// 	}
// 
// 	public void setHous_login_email(String hous_login_email) {
// 		this.hous_login_email = hous_login_email;
// 	}
// 
// 	public String getHous_login_password() {
// 		return hous_login_password;
// 	}
// 
// 	public void setHous_login_password(String hous_login_password) {
// 		this.hous_login_password = hous_login_password;
// 	}
// 
// 	public String getHous_name() {
// 		return hous_name;
// 	}
// 
// 	public void setHous_name(String hous_name) {
// 		this.hous_name = hous_name;
// 	}
// 
// 	public String getHous_logo() {
// 		return hous_logo;
// 	}
// 
// 	public void setHous_logo(String hous_logo) {
// 		this.hous_logo = hous_logo;
// 	}
// 
// 	public String getHous_phone() {
// 		return hous_phone;
// 	}
// 
// 	public void setHous_phone(String hous_phone) {
// 		this.hous_phone = hous_phone;
// 	}
// 
// 	public String getHous_company_name() {
// 		return hous_company_name;
// 	}
// 
// 	public void setHous_company_name(String hous_company_name) {
// 		this.hous_company_name = hous_company_name;
// 	}
// 
// 	public String getHous_company_addr() {
// 		return hous_company_addr;
// 	}
// 
// 	public void setHous_company_addr(String hous_company_addr) {
// 		this.hous_company_addr = hous_company_addr;
// 	}
// 
// 	public double getHous_score_description() {
// 		return hous_score_description;
// 	}
// 
// 	public void setHous_score_description(double hous_score_description) {
// 		this.hous_score_description = hous_score_description;
// 	}
// 
// 	public double getHous_score_service() {
// 		return hous_score_service;
// 	}
// 
// 	public void setHous_score_service(double hous_score_service) {
// 		this.hous_score_service = hous_score_service;
// 	}
// 
// 	public double getHous_score_speed() {
// 		return hous_score_speed;
// 	}
// 
// 	public void setHous_score_speed(double hous_score_speed) {
// 		this.hous_score_speed = hous_score_speed;
// 	}
// 
// }
// 
// Path: src/main/java/com/phn/bookhouse/service/HouseService.java
// public interface HouseService {
// 	public int addHouse(House house);
// 	public int removeHouseById(long houseid);
// 	public House findHouseById(long houseid);
// 	public House loginJudge(String housename,String housepass);
// 	public List<House> findHouseByName(String housename);
// 	public int editHouseInfo(House house);
// 	public int editHousePass(House house);
// 	/**
// 	 * @author pan
// 	 * @param loginHouse
// 	 */
// 	public void editHouseLogo(House loginHouse);
// 	/**
// 	 * @author pan
// 	 * @param house
// 	 */
// 	public boolean registJudge(House house);
// 	/**
// 	 * @author pan
// 	 * @param house
// 	 * @return
// 	 */
// 	public int regist(House house);
// }


// Path: src/main/java/com/phn/bookhouse/service/impl/HouseServiceImpl.java
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.phn.bookhouse.dao.HouseDao;
import com.phn.bookhouse.entity.House;
import com.phn.bookhouse.service.HouseService;

/**
 * 
 */
package com.phn.bookhouse.service.impl;










/**
 * @file HouseServiceImpl.java
 * @author pan
 * @date 2014年11月13日
 * @email panhainan@yeah.net
 */
@Service("houseService")
public class HouseServiceImpl implements HouseService { 
	@Autowired
	private HouseDao houseDao;
	@Override
	public int addHouse(House house) {