package com.cesgroup.cesmonitor.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.cesgroup.cesmonitor.bean.CreateFromHost;
import com.cesgroup.framework.base.dao.IBaseDao;

/**
 *
 * @author user
 *
 */
public abstract interface CreateFromHostMapper extends IBaseDao<Object> {

    /**
     * @return 通过主机类型查询出交换机
     */
    @Select({ "select hosts.`host`, `hosts`.`name` from hosts where `hosts`.host_type = '${hostType}' " })
    List<CreateFromHost> listHosts(@Param("hostType") String hostType);

}
