/*
 * 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.entity.Device;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

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

    /**
     * 根据设备ID获取设备详情
     *
     * @param deviceid
     * @return
     */
    @Select("select device_id,server_ip,device_ip,mac_address,login_count,login_time,hardware_type,software_version,brand_code,is_blacklist,water_remind,remind_date,remind_cycle,"
            + "today_remind,first_activate,create_time,create_date from tbl_device where device_id= #{deviceid}")
    Device getDeviceById(@Param("deviceid") Integer deviceid);

}
