package com.sckw.slope.detection.dao.tdengine;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sckw.slope.detection.model.dos.tdengine.Devices;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@DS("td")
@Mapper
@Repository
public interface DevicesMapper extends BaseMapper<Devices> {
    @DS("td")
    Devices selectLastData(@Param("deviceCode") String deviceCode);

    @DS("td")
    Devices selectLastDataByCodeAndItemName(@Param("deviceCode") String deviceCode,@Param("itemName") String itemName);

}