package com.tykj.dev.rfid.repository;

import com.tykj.dev.rfid.entity.domin.InputOutputDevice;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author HuangXiahao
 * @version V1.0
 * @packageName com.tykj.dev.rfid.repository
 **/

public interface InputOutputDeviceDao extends JpaRepository<InputOutputDevice, Integer>, JpaSpecificationExecutor<InputOutputDevice> {
    List<InputOutputDevice> findAllByUnitIdAndDirection(Integer unitId,Integer direction);

    List<InputOutputDevice> findAllByIsRead(Integer isRead);
}
