package com.haha.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.haha.entity.Device;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DeviceMapper extends BaseMapper<Device> {

    /**
     * 根据设备ID查询设备
     */
    @Select("SELECT * FROM t_device WHERE device_id = #{deviceId}")
    Device selectByDeviceId(@Param("deviceId") String deviceId);
}
