package com.tykj.dev.device.user.subject.dao;

import com.tykj.dev.device.user.subject.entity.Groups;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface GroupDao extends JpaRepository<Groups, Integer>, JpaSpecificationExecutor<Groups> {
    List<Groups> findAllByType(Integer type);
}
