package com.yeejoin.equipmanage.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex;

import java.util.List;

/**
 * @author keyong
 * @title: IEquipmentSpecificIndexService
 * <pre>
 * @description: TODO
 * </pre>
 * @date 2020/10/30 18:12
 */
public interface IEquipmentSpecificIndexService extends IService<EquipmentSpecificIndex> {
    /**
     * <pre>
     * @Description: 通过 iot_code查询
     * </pre>
     *
     * @MethodName:
     * @Param: []
     * @Return: List<EquipmentSpecificIndex>
     * @Throws
     * @Author keyong
     * @Date 2020/11/3 17:58
     */
    List<EquipmentSpecificIndex> getEquipmentSpeIndexBySpeIotCode(String iotCode);

    /**
     * 根据指标key查询列表
     * @param listIndex keys
     * @return 列表
     */
    List<EquipmentSpecificIndex> getEquipmentSpeIndexByIndex(List<String> listIndex);

    /**
     * 根据信号索引查询装备性能指标
     * @param indexAddress indexAddress
     * @return EquipmentSpecificIndex
     */
    EquipmentSpecificIndex getEquipmentSpeIndexByIndexAddress(String indexAddress,String gatewayId);
}
