package com.example.removetolocal.newrepel.dao;

import com.example.removetolocal.newrepel.entity.RepelDeviceUnit;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author zjm
 * @version 1.0.0
 * @ClassName RepelDeviceUnitDao.java
 * @Description TODO
 * @createTime 2021年01月10日 10:40:00
 */
public interface RepelDeviceUnitDao  extends JpaRepository<RepelDeviceUnit, Integer>, JpaSpecificationExecutor<RepelDeviceUnit> {

    List<RepelDeviceUnit> findAllByUnitsId(Integer unitId);
}
