/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.ifish.mapper;

import com.ifish.bean.Tbl_HardWare_Type;
import com.ifish.bean.Tbl_Vender;
import java.util.Map;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 *
 * @author Administrator
 */
public interface Tbl_Hardware_Type_Mapper {

    /**
     * 根据设备类型Code获取厂家设备类型详情
     *
     * @param type
     * @return
     */
    @Select("select hardware_type,hardware_name,control_amount,timer_amount,is_work_model,is_custom_icon,all_icon_name,all_show_name,default_icon_name,default_show_name,"
            + "icon_link,is_lightness,is_sark_lamp,hardware_desc,update_time,create_time from tbl_hardware_type where hardware_type=#{type}")
    Tbl_HardWare_Type getHardwareTypeByTypeCode(@Param("type") String type);

    /**
     * 根据code获取厂家信息
     *
     * @param code
     * @return
     */
    @Select("select brand_code,brand_name,brand_introduce,brand_logo from tbl_vender_list where brand_code=#{code}")
    Tbl_Vender getVenderListByBrandCode(@Param("code") String code);
}
