package com.yeejoin.equipmanage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yeejoin.equipmanage.common.entity.EquipmentSpecificIndex;
import com.yeejoin.equipmanage.mapper.EquipmentSpecificIndexMapper;
import com.yeejoin.equipmanage.service.IEquipmentSpecificIndexService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author keyong
 * @title: EquipmentSpecificIndexImpl
 * <pre>
 * @description: TODO
 * </pre>
 * @date 2020/10/30 18:13
 */
@Service
public class EquipmentSpecificIndexServiceImpl extends ServiceImpl<EquipmentSpecificIndexMapper, EquipmentSpecificIndex> implements IEquipmentSpecificIndexService {

    @Override
    public List<EquipmentSpecificIndex> getEquipmentSpeIndexBySpeIotCode(String iotCode) {
        return this.baseMapper.getEquipmentSpeIndexBySpeIotCode(iotCode);
    }

    @Override
    public List<EquipmentSpecificIndex> getEquipmentSpeIndexByIndex(List<String> listIndex) {
        return this.baseMapper.getEquipIndexInIndex(listIndex);
    }

    @Override
    public EquipmentSpecificIndex getEquipmentSpeIndexByIndexAddress(String indexAddress,String gatewayId) {
        return this.baseMapper.getEquipmentSpeIndexByIndexAddress(indexAddress,gatewayId);
    }
}
