package com.huimv.admin.mapper;

import com.huimv.admin.common.utils.Result;
import com.huimv.admin.entity.EnvDevice;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.huimv.admin.entity.dto.DeviceDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author author
 * @since 2023-02-13
 */
@Repository
public interface EnvDeviceMapper extends BaseMapper<EnvDevice> {
    DeviceDto getCount(@Param("farmId") String farmId);

    List<String>  selectDeviceCodeByfarmId(@Param("farmId") Integer farmId);
}
