package com.abbidot.tracker.database.dao

import androidx.room.Dao
import androidx.room.Query
import com.abbidot.tracker.bean.DeviceBean
import com.abbidot.tracker.database.MyDatabase

/**
 *Created  by .yzq on 2021/11/8/008.
 * @link
 * @description:DeviceBean表的dao
 */
@Dao
interface DeviceDao : BaseDao<DeviceBean> {

    @Query("SELECT * FROM ${MyDatabase.DEVICE_TABLE} WHERE macId LIKE :mac LIMIT 1")
    fun findByMac(mac: String): DeviceBean?
}