package com.ssj.dao.sys.usercenter.dao;

import com.ssj.bean.sys.usercenter.domain.SchoolmasterCenter;
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 2018/9/20
 */
@Repository
public interface SchoolmasterCenterDao extends JpaRepository<SchoolmasterCenter, String> {

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

    SchoolmasterCenter findByUserId(String schoolmasterManagerId);
}
