/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.wechat.dao;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.wechat.global.base.dao.impl.BaseDao;
import com.wechat.model.dbEntity.MdeHotelSubBrand;

/**
 * 单表生成DAO接口
 * 
 * @author tangwc
 * @version 2018-05-23
 */
@Repository
public class MdeHotelSubBrandDao extends BaseDao {

	public MdeHotelSubBrand getInfoById(int id) {
		return super.selectOne("MdeHotelSubBrandMapper.get", id);
	}

	// 根据国际区分获取酒店品牌
	public List<MdeHotelSubBrand> getHotelByInternational(Map<String, String> map) {
		return super.select("MdeHotelSubBrandMapper.getHotelByInternational", map);
	}

	// 获取所有酒店品牌
	public List<MdeHotelSubBrand> getAllHotelSubBrandInternational(String lang) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("lang", lang);
		return super.select("MdeHotelSubBrandMapper.getAllHotelSubBrandInternational", map);
	}
}