package com.ssj.dao.sys.organization.dao;

import com.ssj.bean.sys.organization.domain.OrgTeacher;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

/**
 * @author Mount Liu
 * @date 2019/2/27
 */
@Repository
public interface OrgTeacherDao extends JpaRepository<OrgTeacher, String> {

    /**
     * 分页查询列表
     *
     * @param specification
     * @param page
     * @return
     */
    Page<OrgTeacher> findAll(Specification<OrgTeacher> specification, Pageable page);
}
